Assigning Capability During Install

Re: Assigning Capability During Install

by Sarah Fahlesson -
Number of replies: 0
That's pretty much what it is, the configuration of a site. We have a system set up to install and update Moodle with as few manual steps as possible. And the ability to very quickly set up an identical installation with all the correct roles, settings, permissions, capabilities, plugins, etc. We maintain entirely too many Moodle installations to want to do anything manually. And in general, we do the admin work ourselves, so anything that makes our life easier is good!

For now we took a copy of assign_capability and commented out the check to see if the capability actually exists. Testing shows that all capabilities are properly assigned to all roles, even non-core capabilities to non-core roles. This does though, place the requirement on us to make sure that the capabilities actually exists.

But the idea of running a setup script afterwards is probably where we should aim in the future. It would be easier to manage, especially with updates.