示例#1
0
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not self._doProcess:
         # Logged-in check failed
         return
     if not self._avatar.canUserModify(self._getUser()):
         raise errors.AccessControlError("user")
示例#2
0
文件: users.py 项目: arturodr/indico
 def _checkProtection(self):
     RHProtected._checkSessionUser(self)
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
示例#3
0
文件: users.py 项目: arturodr/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify(self._aw):
             raise errors.AccessControlError("user")
示例#4
0
文件: users.py 项目: arturodr/indico
    def _checkProtection(self):

        RHProtected._checkProtection(self)
        if not self._avatar.canUserModify(self._getUser()):
            raise errors.AccessControlError("user")