-
Notifications
You must be signed in to change notification settings - Fork 10
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
Settings does not exist #4
Comments
I don't think that settings may be dynamic. If you need with concrete setting, than create it. I supposed How do you plan to use settings so that it can be null? |
I work with Magento and it return "" if setting can not find. |
It's really bug. I will fix soon. You can configure SonataAdminBundle that manager can't delete setting (superadmin can everything): # app/config/config.yml
sonata_admin:
security:
handler: sonata.admin.security.handler.role
# app/config/security.yml
security:
role_hierarchy:
ROLE_SONATA_MANAGER:
- ROLE_APP_ADMIN_ARTICLE_ALL
- ROLE_LEXXPAVLOV_SONATA_ADMIN_SETTINGS_LIST
- ROLE_LEXXPAVLOV_SONATA_ADMIN_SETTINGS_EDIT
- ROLE_LEXXPAVLOV_SONATA_ADMIN_SETTINGS_SHOW
# - ROLE_APP_ADMIN_USER_ALL
ROLE_ADMIN: [ ROLE_USER, ROLE_SONATA_ADMIN ]
ROLE_MANAGER: [ ROLE_ADMIN, ROLE_SONATA_MANAGER ]
ROLE_SUPER_ADMIN: [ ROLE_MANAGER, ROLE_ALLOWED_TO_SWITCH ] See security docs. |
I have created pull request #5 |
Hi.
I try to get data by "name" which doesn't exist and get error
Error: Call to a member function getValue() on null
Please, return "" if settings don't exist.
The text was updated successfully, but these errors were encountered: