When updating permissions in code (by deleting a line in my secure_permissions_data.module file) permissions do not get updated in the UI.
I assume the UI is an accurate reflection of actual permissions in effect. (All cache has been flushed).

What's the recommended way to ensure code updates are being used?

Comments

mikebell_’s picture

If you re-save the secure permissions settings page that will re-enforce the permissions in code.

rattusrattus’s picture

I was not seeing any changes to the role permissions when making changes to the code. One of the roles had no permissions initially and after updating the code with permissions for this role I was able to trigger the import by saving the secure permissions configuration form (admin->config->secure permissions).

Having to click a button to trigger the import is no real problem but maybe it could be made more obvious by adding an 'import' button.

agentrickard’s picture

This module could really use a new maintainer. I wrote it to prove a point but don't actually use it.

mikebell_’s picture

We're using the module on quite a few sites now, I'm also in talks with Greg Harvey about various different features. I'm more than happy to take it over and continue development on it.

agentrickard’s picture

You already have commit access. After a bit of time doing releases and support, let's look at transferring the project.

doublejosh’s picture

Thanks for the answer on "enforcing" or "reverting" to the in-code permissions.

Not sure if you want to keep this open to create a more obvious button to perform this action.