Exemplo n.º 1
0
Arquivo: api.py Projeto: Ictp/indico
 def _checkParams(self, params):
     RHUserBase._checkParams(self, params)
     self._ak = self._avatar.getAPIKey()
Exemplo n.º 2
0
Arquivo: api.py Projeto: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
Exemplo n.º 3
0
Arquivo: api.py Projeto: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()
Exemplo n.º 4
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify(self._aw):
             raise AccessControlError("user")
Exemplo n.º 5
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
Exemplo n.º 6
0
 def _checkParams(self, params):
     RHUserBase._checkParams(self, params)
     self._ak = self._avatar.getAPIKey()
Exemplo n.º 7
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()