Having read through the README for this module, I was unable to determine how to make changes to permissions in code, then have those permissions update on the site.

If this were features, I'd be running a drush features-revert on it, so I was hoping for some similar way to do this, but I couldn't find any information on it.

If you'd like to let me know how this is possible, I'll happily put in a doc patch for this, or alternatively just write it in there!

Comments

thedavidmeister’s picture

Status: Active » Fixed

From the UI:

To change permissions with the module enabled, you must now edit your /sites/all/modules/secure_permissions_data/secure_permissions_data.module file. After editing the file navigate to /admin/user/secure_permissions/view select 'Load permissions from code' and click 'Save configuration' to update the permissions

There is also a drush command "secure-permissions-rebuild"

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

chriscohen’s picture

Status: Closed (fixed) » Needs review

Right so what you're saying is that the user interface provides the documentation? So, before being able to assess a module to see whether it's suitable or what its requirements might be, I'd have to install the module, go to the admin UI and read about it there? You don't see a problem with that?

Sometimes it's good to go above and beyond the "minimum amount possible" documentation and make sure it's comprehensive instead.

thedavidmeister’s picture

I suppose, I'm not actually a maintainer of this module though.

Feel free to file a patch with the docs you're after and it might get committed, sounds like you're looking for something on the project page though?

I'm putting together an alternative-but-similar approach at https://drupal.org/project/permissions_variable if you're looking to shop around. It works, but I've got to put together some more tests and docs before I publish a stable release.

agentrickard’s picture

I haven't looked at this module in months, and wrote it in an afternoon to prove a point. Much of this can be done through Features and Strongarm as well.

I have updated the project page to indicate that it needs a new maintainer, if anyone is interested.

thedavidmeister’s picture

I think it's a good idea for a module. I actually "borrowed" a bunch of code from here for my own project. I just like the syntax of the export in my module better ;)

Manually exporting permissions through Features is very RSI inducing, introduces artificial dependencies into your Features and can easily be overridden at the destination through the UI (not always desirable). I'm not convinced Features is the final word in permissions management simply because it deploys other things well.