##// END OF EJS Templates
users: changed spelling of users_groups to user_groups. Because English :]
marcink -
r2067:e89cfa8f default
parent child Browse files
Show More
@@ -593,13 +593,14 b' class AdminUsersView(BaseAppView, DataGr'
593 c.user = User.get_or_404(user_id)
593 c.user = User.get_or_404(user_id)
594 self._redirect_for_default_user(c.user.username)
594 self._redirect_for_default_user(c.user.username)
595
595
596 users_groups = set(self.request.POST.getall('users_group_id'))
596 user_groups = set(self.request.POST.getall('users_group_id'))
597 users_groups_model = []
597 user_groups_objects = []
598
598
599 for ugid in users_groups:
599 for ugid in user_groups:
600 users_groups_model.append(UserGroupModel().get_group(safe_int(ugid)))
600 user_groups_objects.append(
601 UserGroupModel().get_group(safe_int(ugid)))
601 user_group_model = UserGroupModel()
602 user_group_model = UserGroupModel()
602 user_group_model.change_groups(c.user, users_groups_model)
603 user_group_model.change_groups(c.user, user_groups_objects)
603
604
604 Session().commit()
605 Session().commit()
605 c.active = 'user_groups_management'
606 c.active = 'user_groups_management'
General Comments 0
You need to be logged in to leave comments. Login now