bekkalokk/gitea: Do not change the user visibility
Eval nix flake / evals (push) Failing after 1m55s
Details
Eval nix flake / evals (push) Failing after 1m55s
Details
This commit is contained in:
parent
62b269637a
commit
545583cf04
|
@ -51,6 +51,7 @@ def add_user(username, name):
|
||||||
existing_users[username] = user
|
existing_users[username] = user
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
user["visibility"] = existing_users[username]["visibility"]
|
||||||
r = requests.patch(GITEA_API_URL + f'/admin/users/{username}',
|
r = requests.patch(GITEA_API_URL + f'/admin/users/{username}',
|
||||||
json=user,
|
json=user,
|
||||||
headers={'Authorization': 'token ' + API_TOKEN})
|
headers={'Authorization': 'token ' + API_TOKEN})
|
||||||
|
|
Loading…
Reference in New Issue