Ejemplo n.º 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")
Ejemplo n.º 2
0
 def _checkProtection(self):
     RHProtected._checkSessionUser(self)
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
Ejemplo n.º 3
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify(self._aw):
             raise errors.AccessControlError("user")
Ejemplo n.º 4
0
    def _checkProtection(self):

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