Esempio n. 1
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._target.canModify(self._aw):
             raise ServiceError("ERR-U6", _("You are not allowed to perform this request"))
     else:
         raise ServiceError("ERR-U7", _("You are currently not authenticated. Please log in again."))
Esempio n. 2
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._target.canModify(self._aw):
             raise ServiceError(
                 "ERR-U6", _("You are not allowed to perform this request"))
     else:
         raise ServiceError(
             "ERR-U7",
             _("You are currently not authenticated. Please log in again."))
Esempio n. 3
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryBasketBase._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
Esempio n. 4
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
     if not self._avatar.canUserModify(self._aw.getUser()):
         raise ServiceAccessError('Access denied')
Esempio n. 5
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     UserBasketBase._checkProtection(self)
Esempio n. 6
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
Esempio n. 7
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify( self._aw ):
             raise ServiceError("ERR-U6", _("You are not allowed to perform this request"))
Esempio n. 8
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryBasketBase._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
Esempio n. 9
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
     if not self._avatar.canUserModify(self._aw.getUser()):
         raise ServiceAccessError('Access denied')
Esempio n. 10
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
Esempio n. 11
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     UserBasketBase._checkProtection(self)