Group and Permission based on database #562
Answered
by
lonnieezell
tomchandra
asked this question in
Q&A
|
any chance to make master group and permission save to database and link that to table auth_group_users/auth_permissions_user like myth auth method, so we dont need defining availible permission or group on shield config. thanks |
Answered by
lonnieezell
Dec 17, 2022
Replies: 1 comment 1 reply
|
You can use the settings() helper to save it to the database and it will work without changes. The system was designed to be able to commit the groups and permissions to version control for easier deployments but we built the settings library to allow that to be overridden at runtime. Bonfire has an example of this in its group settings if you need a reference. |
1 reply
Answer selected by
kenjis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the settings() helper to save it to the database and it will work without changes.
The system was designed to be able to commit the groups and permissions to version control for easier deployments but we built the settings library to allow that to be overridden at runtime.
Bonfire has an example of this in its group settings if you need a reference.