Add permissions to administer PRLP

Created on 8 April 2020, over 4 years ago
Updated 25 October 2024, 22 days ago

As described at https://www.drupal.org/project/prlp/issues/2572237 (that one is for D7), there are some cases when certain user roles are allowed to access/manage some site administration sections. But that's not the case for some "more sensitive" places, like this one.

Said that, I think it's better to have separated permissions. That way we can to decide if mentioned roles are able to access settings or not.

Patch in the way...

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇨🇴Colombia waspper

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France flocondetoile Lyon

    Making this change will break existing installations. Can you please include a migration that assigns this new permission to all existing users that have the "administer users" permission?

    Not sure patch #2 will break anything. Anyway, site administrators still get access to PRLP settings.

    And in my case, this patch is useful because I don't want users with the permission "administer users" to be able to manage PRLP Settings. And in my case, when i give the permission "adminsiter users" I didn't want to give them the permision to manage PRLP settings. So In my mind patch #2 should be committed, not #5 which ensure that an unwanted situation is still present.

    Otherwise RTBC++ (#2 or #5)

  • First commit to issue fork.
  • Pipeline finished with Failed
    22 days ago
    Total: 203s
    #320852
  • Pipeline finished with Success
    22 days ago
    Total: 146s
    #320906
  • Pipeline finished with Success
    22 days ago
    Total: 199s
    #320912
  • 🇦🇺Australia elc

    Turned into MR against 2.0.x branch.

    Fixed up tests to use new permission. Cleanup on tests to avoid doing extra work which isn't tested or needed.

    Tests are green all round.

Production build 0.71.5 2024