• Resolved zinned54

    (@zinned54)


    Hi!
    I have tried to find an answer to this question but without luck, so i thought you guys might be able to help me!

    I wonder if it is possible to give (i.e.) the Editor role permission to see the Store Locator in the backend area?

    Lets say if i use a code like this (in the function.php file):

    $role_object = get_role( 'editor' );
    	$role_object->add_cap( 'manage_store_locator' );

    or something like that to give the Editor role this permission. Is this possible?
    I’ve also tried to find the cap for Store Locator but havnt found any info regarding this.

    I have tried to use the plugin “User Role Editor” and givin the Editor role full access, but even if i have done that the Store Locator button wont show up.
    It seems only the Administrator role is able to see the Store Locator in the backend.

    Any ideas?
    Thanks

    https://www.ads-software.com/plugins/store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zinned54

    (@zinned54)

    I got a reply from Viadat by email with a solution, which i want to share with you if anyone encounters the same problem.

    You can go to your ‘sl-functions.php’, in the ‘sl_add_options_page()’ function, change the ‘capability’ element in the arrays used to create the admin pages (approx. starting at line 436).

    The downside of this method is needing to modify this after each Store Locator update. Currently, working on developing an addon that allows you to grant specific role access to each page/sub-page of the Store Locator plugin, so hopefully will be available in the future

    This solution works fine till they have developed a better way to do this.

    Have a nice day!

    The instructions above are not valid anymore AFAIK.

    In the changelog of version 1.2.20 it reads:

    'wpsl_capability' to manually set the required user capability for adding/editing stores

    It’s not clear what should happen with this. There’s no option in the default UI of the Store Locator to deal with permissions.

    Could someone specify what should be done in order to grant add/edit permissions to an editor of author please?

    Edit: apparently this is another plugin than the WP Store locator. Ignore my question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Non-Admin role able to add/mange locations’ is closed to new replies.