added some comments
This commit is contained in:
parent
5627ad7f5d
commit
69d757554f
1 changed files with 1 additions and 0 deletions
|
@ -579,6 +579,7 @@ def removeUserFromCampus(token, userId, campusId):
|
||||||
if requestingUser.key().id() != userToRemove.key().id():
|
if requestingUser.key().id() != userToRemove.key().id():
|
||||||
return forbidden("No permission to delete user")
|
return forbidden("No permission to delete user")
|
||||||
|
|
||||||
|
#remove campus from user campus list
|
||||||
try:
|
try:
|
||||||
userToRemove.campuses_id_list.remove(campusId)
|
userToRemove.campuses_id_list.remove(campusId)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue