1
0
Fork 0

bekkalokk/gitea: Do not change the user visibility

This commit is contained in:
Jo Vassbotn Remvik 2024-03-03 00:29:00 +01:00
parent 62b269637a
commit 545583cf04
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ def add_user(username, name):
existing_users[username] = user
else:
user["visibility"] = existing_users[username]["visibility"]
r = requests.patch(GITEA_API_URL + f'/admin/users/{username}',
json=user,
headers={'Authorization': 'token ' + API_TOKEN})