예제 #1
0
파일: controllers.py 프로젝트: javfg/indico
 def _process_args(self):
     RHUserBase._process_args(self)
     self.identity = Identity.get_or_404(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
예제 #2
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.token = OAuthToken.get(request.view_args['id'])
     if self.user != self.token.user:
         raise Forbidden(
             "You can only revoke tokens associated with your user")
예제 #3
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.identity = Identity.get_one(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
예제 #4
0
 def _checkParams(self):
     RHUserBase._checkParams(self)
     self.identity = Identity.get_one(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
예제 #5
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._doProcess and not session.user.is_admin:
         raise Forbidden
예제 #6
0
파일: controllers.py 프로젝트: fph/indico
 def _checkParams(self):
     RHUserBase._checkParams(self)
     self.token = OAuthToken.get(request.view_args['id'])
     if self.user != self.token.user:
         raise Forbidden("You can only revoke tokens associated with your user")
예제 #7
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.application = OAuthApplication.get_or_404(request.view_args['id'])
예제 #8
0
 def _checkProtection(self):
     RHUserBase._checkProtection(self)
     if self._doProcess and not session.user.is_admin:
         raise Forbidden