diff --git a/brewman/views/auth/user.py b/brewman/views/auth/user.py index 49427fc9..3ca52e27 100644 --- a/brewman/views/auth/user.py +++ b/brewman/views/auth/user.py @@ -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)