mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
admin update user roles - permissions cache warning
This commit is contained in:
parent
259d7c619c
commit
3c16859bfe
1 changed files with 2 additions and 0 deletions
|
@ -559,6 +559,8 @@ def admin_user_edit(user_id):
|
|||
if role.id != form.role.data:
|
||||
user.roles.remove(role)
|
||||
user.roles.append(Role.query.get(form.role.data))
|
||||
if form.role.data == 4:
|
||||
flash(_("Permissions are cached for 50 seconds so new admin roles won't take effect immediately."))
|
||||
|
||||
db.session.commit()
|
||||
user.flush_cache()
|
||||
|
|
Loading…
Reference in a new issue