From aeead4db7661bf5fc363c41334eee77b5a8c29aa Mon Sep 17 00:00:00 2001 From: Amritanshu Agrawal Date: Tue, 10 Oct 2017 06:21:05 +0000 Subject: [PATCH] Update 'brewman/views/auth/user.py' dbsession was incorrectly spelt in add_groups --- brewman/views/auth/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)