|
@@ -18,7 +18,7 @@ def _can_manage_users(request):
|
|
|
return request.user.application.managed_applications.profile_set
|
|
|
|
|
|
urlpatterns = rapid.register_model(Application, 'aplicacao',
|
|
|
- write_set=permissions.to_admin(Application), read_set=permissions.to_all(Application)) +\
|
|
|
+ write_set=permissions.to_admins(Application), read_set=permissions.to_all(Application)) +\
|
|
|
rapid.register_model(Profile, write_set=permissions.to_admins(Profile), read_set=permissions.to_staff(Profile)) +\
|
|
|
rapid.register_instance_form(Profile, 'manage_users', u'Gerenciar Usuários',
|
|
|
ManageUsers, _can_manage_users, "fa-users",
|