commited non-working code so that Michael can seeee
fixed an issue with userGroupsForModule
Merge branch 'permissions' into groupChat