예제 #1
0
파일: api.py 프로젝트: Ictp/indico
 def _checkParams(self, params):
     RHUserBase._checkParams(self, params)
     self._ak = self._avatar.getAPIKey()
예제 #2
0
파일: api.py 프로젝트: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
예제 #3
0
파일: api.py 프로젝트: Ictp/indico
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()
예제 #4
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify(self._aw):
             raise AccessControlError("user")
예제 #5
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if not self._getUser().isAdmin():
         raise AccessError()
예제 #6
0
 def _checkParams(self, params):
     RHUserBase._checkParams(self, params)
     self._ak = self._avatar.getAPIKey()
예제 #7
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     ak = self._avatar.getAPIKey()
     if ak and ak.isBlocked():
         raise AccessError()