Browse Source

minor fix about sqlalchemy performance and control access management

Damien ACCORSI 10 years ago
parent
commit
be760db64d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tracim/tracim/controllers/admin/user.py

+ 2 - 1
tracim/tracim/controllers/admin/user.py View File

35
     """
35
     """
36
      CRUD Controller allowing to manage groups of a user
36
      CRUD Controller allowing to manage groups of a user
37
     """
37
     """
38
-    allow_only = predicates.in_any_group(Group.TIM_ADMIN_GROUPNAME)
38
+
39
+    allow_only = predicates.in_group(Group.TIM_ADMIN_GROUPNAME)
39
 
40
 
40
     _ALLOWED_PROFILE_USER = 'tracim-profile-user'
41
     _ALLOWED_PROFILE_USER = 'tracim-profile-user'
41
     _ALLOWED_PROFILE_MANAGER = 'tracim-profile-manager'
42
     _ALLOWED_PROFILE_MANAGER = 'tracim-profile-manager'