Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There's a few problems in the code that I'm fixing that I discovered. I will post a patch when I've fixed them.
Comment | File | Size | Author |
---|---|---|---|
#3 | permissions_api-logicfixes-2017997.patch | 4.08 KB | reubenavery |
Comments
Comment #1
reubenavery CreditAttribution: reubenavery commentedAlso, the functions are all improperly namespaced (should be named permissions_api_* not permissions_*). Will fix this as well in my patch.
Comment #2
ebeyrent CreditAttribution: ebeyrent commentedI will not be changing the function names, unless there's a strong compelling reason for it. It would break a lot of existing code for very little gain.
Also, can you please be a bit more specific about the logic problems you alluded to?
Comment #3
reubenavery CreditAttribution: reubenavery commentedAnd here's the patch.
Comment #4
reubenavery CreditAttribution: reubenavery commentedRe the function names, please see https://drupal.org/coding-standards#naming
Comment #5
reubenavery CreditAttribution: reubenavery commentedMy use case for this module consisted of two steps, both of which failed due to a number of defects:
drush perm-revoke --modules="foo" --all-roles
drush perm-grant --roles="foo,bar,quack" --permissions="allow failure"