예제 #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.identity = Identity.get_one(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
예제 #3
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.application = OAuthApplication.get_or_404(request.view_args['id'])
예제 #4
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")
예제 #5
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")