Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AdminBundle] Remove ROLE_SUPER_ADMIN role from permissions when user is not an superadmin #1170

Merged
merged 2 commits into from
Jun 20, 2016

Conversation

dannyvw
Copy link
Contributor

@dannyvw dannyvw commented May 24, 2016

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets

Remove ROLE_SUPER_ADMIN role from permissions when user is not an superadmin

@dannyvw dannyvw changed the title [AdminBundle] Remove ROLE_SUPER_ADMIN role for permissions when user is not an superadmin [AdminBundle] Remove ROLE_SUPER_ADMIN role from permissions when user is not an superadmin May 24, 2016
@jockri
Copy link
Contributor

jockri commented May 26, 2016

I don't think it is a good idea to change the getAllRoles function for this. Some other projects might depend on this function and is expecting all roles. Better to create separate function for your use case it think eg getManagableRolesForPages.

@dannyvw
Copy link
Contributor Author

dannyvw commented May 26, 2016

Is this something you want in the core? If so.. then we can add a separate method like getManagableRolesForPages and edit the view to use this method.

@jockri
Copy link
Contributor

jockri commented May 30, 2016

Yes, that can be added in the core. Just create a new helper function.

@dannyvw
Copy link
Contributor Author

dannyvw commented May 31, 2016

@jockri Pull-request is updated

@jockri jockri merged commit d866c4a into Kunstmaan:master Jun 20, 2016
@jockri jockri added this to the 3.5.2 milestone Jun 20, 2016
jockri pushed a commit that referenced this pull request Jun 20, 2016
* master:
  [NodeBundle]: add custom form type for node translations
  [NodeSearchBundle] Change title search + add configuration (#1188)
  Add new translations (#1190)
  [AdminBundle] Remove ROLE_SUPER_ADMIN role from permissions when user is not an superadmin (#1170)
  Fixed wrong translations amdin -> admin
  MediaBundle] Workaround crash when invalid FileUploadForm not redirecting to correct view
  Fixed rendering form label class
  Upgrade CKEditor configuration doc
  Fixed new window for menu items
  Make node publish date stepping configurable
  [SeoBundle] check on twitterImage
  Added event listeners for user management
@dannyvw dannyvw deleted the feature/permissions branch June 22, 2016 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants