Esempio n. 1
0
File: api.py Progetto: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
Esempio n. 2
0
File: api.py Progetto: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()
Esempio n. 3
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
Esempio n. 4
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify(self._aw):
             raise AccessControlError("user")
Esempio n. 5
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()