Skip to content
Snippets Groups Projects
Commit 70c170aa authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

update role name

parent 72aeca7d
No related branches found
No related tags found
1 merge request!60Changed all occurrences of eatfast into ViaResto
Pipeline #46042 passed
......@@ -395,7 +395,7 @@ def update_user(user: schemas.User, user_info: dict, db: Session):
if existing_user:
existing_user.cookie = user.cookie
existing_user.expiration_date = expiration_date
existing_user.admin = "admin eatfast" in user_info["roles"]
existing_user.admin = "admin viaresto" in user_info["roles"]
db.delete(user)
db.add(existing_user)
db.commit()
......@@ -404,7 +404,7 @@ def update_user(user: schemas.User, user_info: dict, db: Session):
else:
user.username = full_name
user.expiration_date = expiration_date
user.admin = "admin eatfast" in user_info["roles"]
user.admin = "admin viaresto" in user_info["roles"]
db.add(user)
db.commit()
db.refresh(user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment