Forums

Role Assignment (3 posts)

  1. fe3n1x
    Member
    Posted 2 months ago #

    Hi. I am in the process of making a Clan website and have implemented the Leaguemanager plugin. I need to assign one person to administrate this plugin but nothing else. How do i do this?

    Many Thanks in advance

    Fe3n1x

  2. MichaelH
    moderator
    Posted 2 months ago #

    Even with Role Manager plugin I can't see how you can isolate just one person to one plugin.

  3. spstieng
    Member
    Posted 1 month ago #

    That's "easy".
    Well, at least crating the roles.

    In the plugin, add the following:

    //Add role
    add_role('leagueAdmin',__('League Manager'));
    
    // Add capability
    $role = get_role('leagueAdmin');
    $role -> add_cap('leagueAdmin');
    $role -> add_cap ('read'); // If you want the user to be able to login backend.

    With this role, the user can only manage your plugin, and nothing else.

    That was the easy part. Now you need to assign this role to a person.
    You can either do this by using the plugin Role Manager. Or you can do this programatically somehow. But I don't know how to.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.