Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Add Edit Permission to Profile Extender Plugin

meshugymeshugy Musician/Hacker ✭✭

I'd like to only grant access to the extended profile fields for specific roles. Is there an easy way to add an "Edit" setting for the Profile Extender Plugin in the Dashboard Roles and Permissions menu?

The plugin already has an "Add" setting, but that on controls user added fields. I'd like to be able to grant permissions for the system wide fields I've created.



  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited January 2014

    you can register a new permission like


    or C("Garden.Settings.Manage")

    If you want to add an extra permission to be checked

    if (!Gdn::Session()->CheckPermission('Garden.Users.Edit') && !C("Garden.Profile.EditUsernames")) {

    you can look at the class.usermodel.php for guidance

  • Options
    edited January 2014

    @peregrine Could not have said it better myself! :D

Sign In or Register to comment.