Update 'brewman/views/auth/user.py'
dbsession was incorrectly spelt in add_groups
This commit is contained in:
parent
a2fbebca07
commit
aeead4db76
@ -136,7 +136,7 @@ class UserView(object):
|
||||
ug = [g for g in user.groups if g.id == id]
|
||||
ug = None if len(ug) == 0 else ug[0]
|
||||
if group['Enabled'] and ug is None:
|
||||
group_object = self.request.dbsessioin.query(Group).filter(Group.id == id).one()
|
||||
group_object = self.request.dbsession.query(Group).filter(Group.id == id).one()
|
||||
user.groups.append(group_object)
|
||||
elif not group['Enabled'] and ug:
|
||||
user.groups.remove(ug)
|
||||
|
Loading…
Reference in New Issue
Block a user