Update app.py
Browse files
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)
|