0

Using role delegation module , i allow a user say 'mat' with a 'site_admin' role to assign other users to a 'VIP_role'.

The problem is role delegation needs apparentely 'administer users permission' being selected for 'assign' actions to work.

When logging in with 'mat' credentials that's been set with 'administer users permission', it gives some back office links that i would like to restrict.

How could I restrict 'role delegate' to editing existing users and assign them roles ?

2
  • 1
    if all else fails, you could set up a series of Rules to defer those addresses to some other page based on the role of the current user
    – Geoff
    Commented Nov 11, 2014 at 2:54
  • @Geoff could u provide an exemple on how to do that?
    – Matoeil
    Commented Nov 11, 2014 at 9:52

2 Answers 2

1

The two modules you will need:

Rules:

The Rules module allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules). It's a replacement with more features for the trigger module in core and the successor of the Drupal 5 workflow-ng module.

and Context Redirect:

This module provides a Context reaction which redirects to a given internal or external url if the context conditions are met.

You could use this module to redirect users of specific roles to a page of your choice, or redirect them based on a path in the site (node/2, 'page.htm') to another page or external URL (ht-p://www.google.com). Dozens of conditions can be cooked up with Context and redirect users to where they need to go.

  • set up a new rule, have it react on a url (based on whatever url you want to restrict)

  • set a condition that the user be of the role for which you are trying to limit access

  • set an action - presumably a redirect to a different page, or perhaps a custom page that tells them they don't have permission to view that url

0
0

i did it this way , unsetting menu links depending on role

  http://drupal.stackexchange.com/questions/136399/how-to-unset-admin-menu-links-programmatically

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.