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."))
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."))
def _checkProtection(self): LoggedOnlyService._checkProtection(self) CategoryBasketBase._checkProtection(self) CategoryDisplayBase._checkProtection(self)
def _checkProtection(self): LoggedOnlyService._checkProtection(self) CategoryDisplayBase._checkProtection(self) if not self._avatar.canUserModify(self._aw.getUser()): raise ServiceAccessError('Access denied')
def _checkProtection(self): LoggedOnlyService._checkProtection(self) UserBasketBase._checkProtection(self)
def _checkProtection(self): LoggedOnlyService._checkProtection(self)
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"))