You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backend config is fetched from the ConfigManager's getBackendConfig method. It returns the compiled configuration.
This is fine, but there is no possibility to manipulate it on a per request basis. Currently EasyAdminBundle lacks built-in security methods. So we have to implement it on our own.
In our case, we need to hide menu items and actions dependend on the user. This cannot be achieved with configuration passes.
Currently we do this in the template, which is really bad of course.
My proposal is to add an event to the getBackendConfig (e.g. after calling processConfig()), so that one can hook into this process and manipulate the config once per request.
What do you think? If liked I'd create a PR
The text was updated successfully, but these errors were encountered:
I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc.
I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle.
The backend config is fetched from the
ConfigManager
'sgetBackendConfig
method. It returns the compiled configuration.This is fine, but there is no possibility to manipulate it on a per request basis. Currently EasyAdminBundle lacks built-in security methods. So we have to implement it on our own.
In our case, we need to hide menu items and actions dependend on the user. This cannot be achieved with configuration passes.
Currently we do this in the template, which is really bad of course.
My proposal is to add an event to the
getBackendConfig
(e.g. after callingprocessConfig()
), so that one can hook into this process and manipulate the config once per request.What do you think? If liked I'd create a PR
The text was updated successfully, but these errors were encountered: