|
|
@ -56,7 +56,7 @@ module OpenProject::GlobalRoles::Patches |
|
|
|
flash[:notice] = l(:notice_successful_create) |
|
|
|
flash[:notice] = l(:notice_successful_create) |
|
|
|
redirect_to action: 'index' |
|
|
|
redirect_to action: 'index' |
|
|
|
else |
|
|
|
else |
|
|
|
@roles = Role.all order: 'builtin, position' |
|
|
|
@roles = Role.order('builtin, position').all |
|
|
|
@member_permissions = Role.new.setable_permissions |
|
|
|
@member_permissions = Role.new.setable_permissions |
|
|
|
@global_permissions = GlobalRole.setable_permissions |
|
|
|
@global_permissions = GlobalRole.setable_permissions |
|
|
|
render template: 'roles/new' |
|
|
|
render template: 'roles/new' |
|
|
|