Roles allow defining what a user can do by assigning the relevant permissions to a role (e.g. editor) that is then assigned to users.

learn more… | top users | synonyms

3
votes
1answer
16 views

Restrict editor user to only edit contents in one specific language

I'm trying to create a role for editors where one editor only has access to edit English contents and the other only has access to contents in another language. I've been researching for quite a ...
0
votes
1answer
17 views

Strange behavior while assigning the role programmatically

I used this code to set role to a user : user_external_login_register($form_state['values']['name'], 'beneficiaire'); $account = user_external_load($form_state['values']['name']); ...
0
votes
1answer
28 views

Remove choice for user delete from Roles which can adminster the Users

I have a User Role called Supervisor which can create new accounts of role Supervisor. The Supervisor can also delete other users with supervisor role. While deleting Other users the Supervisor gets ...
0
votes
1answer
12 views

title_callback not working for certain user in hook_menu

I am developing a module to manage Human Ressources. I implement hook_menu with a title_callback like this: $items['intranet/hr/%user'] = array( 'title callback' => 'user_page_title', 'title ...
-1
votes
1answer
13 views

How can I allow non admin users to edit the menu settings for a node?

How can I set a "Menu settings" field to be available to non admin roles in the permissions page? Here's an image to clarify what I am trying to allow select roles to edit when creating a new node of ...
0
votes
2answers
17 views

How to hide roles from user_profil_form while keeping value?

After loading user_profil_form form, I tried to hide the roles fields. It worked fine, however after submitting the form, my user roles are removed and it's only linked to "authenticated user". Is ...
0
votes
1answer
5 views

Expose some administrative functions on the front-end

I'm developing a web-app for managing non-profit organizations by extending the functionality of the Drupal CMS. What I want is to have only one administrator account (call it super-admin if you ...
-1
votes
0answers
23 views

Ajax works with some roles in drupal

I know the title isn't explicit but i have a problem with my ajax function and the differents roles in drupal. I created two function in my code and none is working when i used a normal role like ...
0
votes
0answers
8 views

How to customize the 'node content links' block?

I'm using Organic Groups to make groups, and have made two content types to be added to the groups. I'm also using the OG extras module, so now I have the 'Node content links' block, where users may ...
0
votes
0answers
5 views

Module providing calendar with roles functionality

There is plenty of calendar modules, but I am looking for module with covers this particular funcionality. I went through Youtube tutorials and modules list and I didn't spot mentioning this one. I ...
1
vote
2answers
26 views

How to display the 'Request New Password' page for Administrators.

What I'd like to do is have the exact same page as /user/password (when not logged in) that the 'Administrator' Role could use and send out emails to existing users. However when logged in you get ...
0
votes
1answer
28 views

Load certain modules only if user is administrator

I have a number of custom admin modules that deal with site statistics, site management, etc. These are quite heavy and I would like to reduce the site footprint for non-admin users. Is there anyway ...
0
votes
1answer
26 views

Restrict language content for a given role

I have a multilingual site (spanish/english). I created 1 role: translator. I need the anonymous users to ONLY see the contents in english language and the translator users to see both. How can I ...
0
votes
2answers
20 views

role delegation module : how to fine-tune the 'edit-administer-users' permissions?

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' ...
0
votes
0answers
35 views

Can't edit permissions anymore

I use the latest version of Drupal 7 and when I try changing some permissions and click to save, I get the following error: Notice : Undefined index: administer partner 6 dans ...
0
votes
1answer
16 views

“Preview before submitting” based on user role

So, you can make "Preview before submitting" optional or required for a node type. I would like to make it optional based on the user who is creating the node. So, for example, a authenticated user ...
0
votes
1answer
33 views

Programatically create new user role in drupal 7

I am trying to create a module which will easily allow me to set up basic sites with specific settings on the fly for a project I'm working on. I am having trouble creating a new user role. I have ...
0
votes
0answers
12 views

Upgrade/downgrade user role based on profile2 field value(boolean) which can be accessed by admins only

There is a role called moderator and profile2 types like advanced,verification. Verification profile type(which can be accessed only by admins) has boolean field called verified. When admin verifies ...
0
votes
0answers
36 views

Flexi access : Create ACL with a particular role

I'm trying to use Flexi Access module on my website. I need to allow some users to see nodes where they haven't access. But when the admin will create the ACL and choose the allowed users for a ...
0
votes
0answers
29 views

So many users and their access

I am developing a site which has around 46 departments and each dept has three Access types. Say Dept Admin, Dept Lead, and Dept Agent. Site will use taxonomy terms Confidential, Restricted, Private ...
0
votes
1answer
31 views

How to define an intermediate admin user as the default install profile on fresh drupal 7?

When generating a new drupal site (multisite), I would like to define the default user profile as an admin user without acces to administration menu. How can I create this new user as an install ...
0
votes
0answers
8 views

How to set permissions for multiple menu items/entire menus at once

How would you go about restricting access to entire menus based on role at once, rather than having to go through one menu item at a time? I'm in the situation of having 30 different roles and 100+ ...
-1
votes
2answers
46 views

How to Implement Multi level of users having different levels of roles under different branches , groups etc using Drupal [closed]

I have to create a web portal, that have number of users from super administrator to employee. Users have single or multilevel access(either to data of one branch or to multiple) on the system. Some ...
0
votes
0answers
13 views

Multiwizard Registration Form based upon Role [duplicate]

I have two different user roles: Reseller Customer Each roles have different registration forms depending on the Role they picked. If he selecting Reseller then two step registration form should ...
0
votes
2answers
24 views

how do you restrict directory path to role?

How would you go about restricting a specific directory path to a role? www.example.com/example1/example3/example4 How do you restrict role access to the directory example1 so that example3 and 4 ...
0
votes
0answers
22 views

Recruit Distribution user roles Issue [closed]

I am using Recruit distribution of drupal, https://www.drupal.org/project/recruiter I am facing an issue while uploading the content in a jobs content type, I have user role named as recruit, the ...
-2
votes
4answers
115 views

How to set default role as 'Member' in drupal 7?

If I have a role i.e. Member. How to set 'Member' as a default role for the users after they registered yourself ? Please help. Thanks
0
votes
0answers
49 views

Show profile fields depending on the profile users role

We are using profile2 to display users listed on our site which has different member levels. Is there an easy way to hide certain fields based on the profile2 users role. We still like them to enter ...
1
vote
1answer
34 views

How to add users under a specific role

We have 4 type of users - Admin - can view and manage all other users Parent - Can view and manage students but own child Teacher - Can view and manage students assigned to him Student - Can ...
0
votes
1answer
16 views

Intending to select user role while creating the node to control the node visibility

I have simple requirement. I have multiple user roles. What I want is that when I create a node, I could select a role of the user which is able to see this node. Or may be by default all roles are ...
0
votes
1answer
30 views

How to restrict user posting a node in certain circumstances

I've created a new user role (country_admin) and I have created a field for these users called user_country. This can be set when registering a user to UK or USA. I have created a taxonomy ...
0
votes
0answers
28 views

User roles for specific taxonomies

I have a taxonomy on my site called 'countries'. I have three 'countries' terms: "UK", "USA", "AUS" I have created a new user role in Drupal 7 called 'countries_admin'. I want to be able to add ...
0
votes
1answer
36 views

Drupal 7 permission enable

I have created new user/role for my user. What permission I need to enable for my user to let them access the Admin->Structure->Pages ? I want this "Structure->Pages" enable in my user page what ...
0
votes
0answers
30 views

Role next to username

Is there a way to display a specific role next to username? There are some articles https://www.drupal.org/node/1776940 and https://www.drupal.org/node/842392 which correspond a little bit to this ...
0
votes
1answer
23 views

Content Access for not showing specific Content types on Add Content page

I am new in Drupal. I have one simple query. I am trying to create one Editor role for one website. Editor would be able to create, update and delete one specific content type "Documents". I have ...
0
votes
2answers
87 views

Limit amount of content creation per anonymous user

In my site anonymous users has access to create one type of content and all data the site stores is user IP address. How do I limit lets say e.g. 2 nodes creations per IP in 12 hours? And when limit ...
0
votes
1answer
25 views

Views boolean column if user has a specific role

I have a standard Drupal installation with Views and Administration Views modules installed. By default, the Users view has a column Roles with ALL the users roles. How to include a custom column ...
-1
votes
2answers
97 views

How to check logged in user username/password/role using Drupal function for validation [duplicate]

I am allowing user to register in my site. while registering, user is assigned with a specific role using user_save while logging in as registered user, I have to check if login credential are ...
0
votes
1answer
20 views

Simple category with drupal commerce not showing to anonymous users

I followed this guide https://drupalcommerce.org/user-guide/setting-product-catalog and now I have a nice simple category page, but not visible to anonymous users. I tried changing the roles to ...
0
votes
1answer
32 views

Don't let user register without role/profile2 profile?

I created a site for a client that lets users register an account of either one out of two roles, which then is linked to one of two profile2 types. Therefore my client wanta no other being able to ...
0
votes
1answer
33 views

Ubercart show Prices without Tax For specific Role

I need to show prices without tax for specific user role. Other available roles should see prices with included tax. How I can achieve this behavior?
0
votes
0answers
27 views

CKEditor - Have custom styles based on user role

Is it possible to restrict a custom ckeditor.styles.js file for a specific user role or roles? For example, if I have a User with defined Roles Content Loader and xDept User, I would like to have the ...
0
votes
1answer
35 views

Removing a row from a view depending on the user currently logged in

I have a view which prints out a table of blog posts. There are 2 columns - title and tags. If a post has a tag assigned to it called core-team then users with the role non-core shouldn't be able ...
2
votes
3answers
144 views

How to assign roles in my own registration form in Drupal 7

I know about assigning roles and permission in DRUPAL admin login where admin can add user and even add new roles (check here) to the new users. I have a basic registration form in my page and while ...
0
votes
2answers
34 views

How to lock a node from a certain role after changing state in workflow?

Workflow module lets you set who can change a certain state to what state. What modules can I use to be able to prevent a certain role from editing a node that is in a specific state? Ex: if a node ...
0
votes
0answers
14 views

Different Entity Reference List for different Roles

I have two user roles like: content creator admin And an Entity Reference Field that: Should only contain a list of the authors nodes (for role content creators) -> I solved this with an entity ...
0
votes
1answer
251 views

“View private files” permission not effective

I have 3 users, an administrator, an uploader, and a viewer. The uploader has a file field attached to his profile and the destination folder of the uploaded (in my case .pdf) file is set to the ...
0
votes
2answers
180 views

Guide on How to Load CSS File Per Role

I'm looking for the simplest solution to allow a custom CSS page to load per role. I have to the CSS pages done, but just need to load them and ensure they are only loaded based on user role. I'm ...
0
votes
1answer
17 views

Find role based on list of permissions

Is there any way of finding the role given a list of permissions? I.E.: $permissions = array('administer content', 'access content'); $role = find_related_roles(); // $role = array(4 => ...
0
votes
1answer
92 views

Send email before role expiration

after long searching and many attempts I definitely need your help. On the website I am currently working on, people can buy a "Participant" role for 1 year. I'm using ubercart to handle the ...