Reference #97 #99
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#99
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was actually looking at a way of having the permissions preset upon install.
I found, and modified, the script below that, when placed in PHP Postflight for the component, presets the permissions on install. The user installing would only need to set the permissions in the component if they wanted to change them.
I'm drawing a blank right now on how, exactly, to implement something like this as part of the compile process within JCB automatically. But, as a thought, in JCB you already set your permissions in each of the admin views, which generates the admin/access.xml file. If we worked out a way to extend the permissions section to allow setting the the permission, but also the group and access levels, then all of the needed parameters would be in place to generate the below code dynamically.
This is just a thought:
I've tested this several times with my component, and it works beautifully.