Jump to content

How to allow certain Roles to view Processes?


Inxentas
 Share

Recommended Posts

My goal is to add a tab at the top of the admin named "tools" under which I want to install a few custom modules. For the Tools tab, I used a page with a ProcessList (so it visually looks like the Templates page). This works perfectly for superusers, but I cannot for the life of me find out how to allow other roles then the superuser to access these pages. I've tried allowing the "admin" templates to be viewed by these Roles, but that doesn't seem to work. Is this actually possible?

Link to comment
Share on other sites

If a user has permission to access one of the modules under your Tools menu, the Tools menu should automatically appear for that user.

So, in your module, you might have something like this:

public static function getModuleInfo() {
    return array(
        'title' => 'Test Module',
        'summary' => 'Module to test permissions',
        'version' => 1,
        'permission' => 'test-permission',
        'page' => array(
            'name' => 'test-module',
            'parent' => 'tools',
            'title' => 'Test Module'
        )
    );
}

Then if the module is installed and the user has a role with 'test-permission', the Tools menu (and of course the Test Module item) should appear.

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...