Exemple #1
0
 def put(self):
     current = models.User.current()
     if not (current.admin or current.uid == get_field('uid')):
         raise errors.AccessDeniedError('Cannot Modify this User')
     controllers.change_user_team(
             get_field('uid'), get_field('team_tid'), get_field('code'))
Exemple #2
0
 def put(self):
     current = models.User.current()
     if not (current.admin or current.uid == get_field('uid')):
         raise errors.AccessDeniedError('Cannot Modify this User')
     controllers.change_user_team(
             get_field('uid'), get_field('team_tid'), get_field('code'))