JustAnotherCibrarian commited on
Commit
0264473
·
verified ·
1 Parent(s): 6e02e1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -61,7 +61,12 @@ def grant_access_multiple_repos(token, repo_list, username):
61
  Users are dereferenced by organisation.
62
  """
63
  if not token:
64
- return "ERROR: Cannot grant access without a token."
 
 
 
 
 
65
  if not isinstance(repo_list, list):
66
  repo_list = [repo_list]
67
  lusers = get_organisation(username)
 
61
  Users are dereferenced by organisation.
62
  """
63
  if not token:
64
+ return "ERROR: Cannot grant access without a write token."
65
+ if not repo_list:
66
+ return "ERROR: No repos selected."
67
+ if not username:
68
+ return "ERROR: No user selected."
69
+
70
  if not isinstance(repo_list, list):
71
  repo_list = [repo_list]
72
  lusers = get_organisation(username)