master: fix group update

preprod
Lephe 6 months ago
parent 85323e896d
commit f4b9110ce2
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 4
      master.py

@ -78,11 +78,11 @@ def update_groups():
# Update an existing group
if g is not None:
changes = (g.css != css) or (g.description != descr) or \
(set(g.privs) != set(privs))
(set(g.privs()) != set(privs))
g.css = css
g.description = descr
for gpriv in g.privs:
for gpriv in g.privileges:
db.session.delete(gpriv)
for priv in privs:
db.session.add(GroupPrivilege(g, priv))

Loading…
Cancel
Save