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

0
votes
0answers
12 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
23 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 ...
1
vote
3answers
45 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
22 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
10 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
32 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
49 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
15 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
45 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 ...
0
votes
1answer
9 views

Create a robust permission control

I am building a system in Drupal and here is one question that is blowing my mind for more than a month and I hope you guys can help me. My user access control inside the system must work like this: ...
0
votes
3answers
35 views

Add/Remove User Role on Node View

I want to be able to add and remove a role to a user via a simple click of a button on almost any node. (Specifically the plan is to allow a user to give themselves a role that would give them extra ...
0
votes
3answers
52 views

Permissions for new role do not work

i have a certain problem regarding a content type and a "supervisor" role for it. For the content type (which unfortunately did not create it myself but found it on an ongoing project), i have ...
1
vote
0answers
31 views

Vocabularies don't appear when Taxonomy Access Control installed?

I have 3 Vocabularies called Country, Project, Research Communities. I installed Taxonomy Access Control module. I haven't configured it yet. But as soon as I install the module, if Anonymous or ...
0
votes
5answers
63 views

Restrict changes of a node

I would like to know how I can restrict editing some property of nodes (like title / Url) for some users (roles). So if I give -moderator access- to some users, they don't start messing with urls and ...
2
votes
1answer
39 views

Edit content if (taxonomy) Country = United Kingdom

I have created a user, now I want to give him permissions so that, when he is logged in, he can view/see all the contents, but can't edit/publish/unpublish/delete them. Of all the contents, he can ...
0
votes
2answers
33 views

How to give Permissions to User based on taxonomy selected while creating a content?

I have a taxonomy called Projects and it has terms like Project1, Project2 etc. I have added a user called ProjectUser1, and assigned a new role called ProjectRole with it. Now I want to give ...
2
votes
2answers
44 views

is there hierarchical user level structure in drupal

Is there any hierachical structure of user in Drupal? I just see user role in drupal, but can we define some level of user? As example: user1 --user2 ---user3 --user4 ---user5 ---user6
0
votes
0answers
27 views

Assign permissions to USER not to ROLE

I am facing a problem and I will try to explain it here and I hope you guys can help me. I am building a CRM in Drupal and Laravel and I have a module called Partners where I store all the ...
0
votes
1answer
23 views

Is there a way to export all roles and permissions from testing environment to be imported/deployed on production environment?

I have testing and production environments that host drupal-7. I have some roles and permissions settled on the testing environment. Can I export these roles and permissions to the production ...
0
votes
2answers
51 views

Send user a reminder email after x-number of days if Profile2 field is empty and user has specific role

I have a multi-step user signup process. When the user creates their account, they are assigned role "A" and are redirected to a Profile2 form with various fields. If they complete and save their ...
1
vote
2answers
34 views

D7 - any module that let (selected) users (/roles?) see the Administration pages in read-only mode?

Is there a module out there which lets us assign a permission to a role which lets a user look at the site from the perspective of an Administrator, or better, from within the permissions of any ...
0
votes
1answer
35 views

Get Organic Group roles of the current user

It seems a few different versions of this question exist so apologies if it seems I am repeating but I dont think I am. I am trying to use the api to get the og role(s) of the current user, not just ...
0
votes
1answer
20 views

How to make user profiles of specific role as public in drupal 7?

I am working on a project and the problem I am facing is, There are 2 user roles Doctor and Patient. What I want to accomplish is profile of users with role of "Doctor" is accessible by all including ...
4
votes
1answer
75 views

How to login by single role if user have multiple roles?

In my latest project client asked me to add extra interface after login where all roles assigned to that user will be shown and user can choose the single role and login by that role only. But i don't ...
0
votes
1answer
29 views

VBO action 'Modify OG user roles' does not show custom OG roles on the 'Add roles' list

I have added new OG roles like 'tutor' or 'contributor'. I am using the view og_members_admin that comes with drupal commons, which uses view bulk operations 'Modify OG user roles' to give an admin ...
0
votes
1answer
14 views

How do you allow a role to assign other users roles - but only specific roles?

I'm creating a "level'ing" role system on my page. At a certain role (Full Member) the user must be able to assign someone with the role level 5 the new role level 6 manually once a dialogue is ...
0
votes
0answers
50 views

Control node access on content type with field permissions

I'm straggling with a conflict for controlling permission access on node base and on field base. My use case is: I've a content type representing a learning project with a set of fields (Author, ...
0
votes
0answers
20 views

Help—Where are Organic Groups global roles? Do Drupal roles replace them?

Global Roles do not appear in my OG config page. What would cause them to go missing? I can't find another similar issue on the web. I need a moderator role for OG groups, but don't want to have to ...
1
vote
2answers
110 views

Send node as HTML formatted email to all users of a role

I have a RULE that works well: After saving a new content of type DEMO Send node as HTML formatted email Parameter: Send email to:doe@example.com,jane@test.com What I need is to send the same ...
-2
votes
1answer
38 views

Hiding sections of text for certain users

In my drupal site on certain pages I want to hide certain links or bits of text in the body field for particular roles.. I might want to do something like either hide this text for custom_role_1 but ...
0
votes
1answer
98 views

Progress bar based on role

I am looking to creating a progress bar on which it is displayed how far you are between role 1 and role 20 (Role names: Level 1 - level 20)? I take it I would have to use some php or javascript ...
0
votes
1answer
47 views

Rename/hide “Save” and “Save as draft” buttons for non-admin roles

I have four content types on my site that registered users can create, but they are set to be approved by admins before publishing. Since the site also sends out notifications to subscribers when a ...
0
votes
2answers
29 views

How can I apply changes to user permissions across several sites?

I am using Drupal 7, we have a total of 99 different instances of pretty much the same site. All sites have the user roles of adm_core and mgr_center. We are currently using drush and puppet to ...
1
vote
2answers
40 views

Unpublished content type using rules module based on user role

I have a website were there are two type of users, Administrator and Clients. I would like to add a rule that should apply if the user is Clients. The rule should unpublished the new content and ...
0
votes
1answer
23 views

Dropdown field listing all roles

Is there a way to populate a content type field with the custom roles registered in Drupal (minus authenticated and anonymous)??? I have googled and found only quick hacks using custom modules, etc. ...
0
votes
1answer
27 views

Change user roles based on profile field

I have an field role_type with values - 0,1,2... And I need to add role X to all users who have role_type = 2? How can I do that? Rules? SQL? Thanks for your help.
0
votes
0answers
4 views

A good workaround for the data_export_import's inability to save user roles?

I am working with the Data Import Export module to move user data and accounts from my live site to my dev site. It works fine in all areas except user roles. It is unable to transfer all roles ...
0
votes
1answer
18 views

is the a module similar to data_export_import that includes user roles?

I am using the Data Export Import module to migrate data from my live site to my dev site. It works fine in all cases except user roles. For some reason, many (but sometimes not all) users lose the ...
2
votes
1answer
31 views

What governs view access?

I just built a view to display user information. I can see this view just fine as a root admin but when I log in as a different user, the view is restricted. What governs view access? Is it a ...
0
votes
1answer
42 views

New role assigned on user account update

I'm thinking about writing a condition ("has new role(s)") using the Rules module to send an email to user to whom a new role is assigned. I need to know how to actually code this... If (user has a ...
1
vote
1answer
203 views

Horrible permissions bug, anonymous users can edit products

I have a Drupal Commerce site. I'm using Content Access to only allow users with the role "Vendor" to "Edit own product." Nobody else is allowed to edit any products. This is the only module I'm using ...
-1
votes
1answer
17 views

Grant a role access to certain content

Is there a way to only grant a role access to certain content? So that every user given that role can access what they need without others being able to, while still being limited from accessing ...
0
votes
0answers
20 views

Display content in dependency of special roles

We use Drupal 7.26 on Windows which Apache. We use the book module for our software documentations, which can have special variants eg a user manual, a configuration manual, a user manual written for ...
0
votes
2answers
29 views

How can I have a block show only on the /user page, but only for users with specific role?

I have users with the role "authors" and a block in /user showing publications so that visitors can see the publications of every "author". The problem is that the block is showing at every user ...
0
votes
1answer
30 views

How to prevent users of particular role to access the content view (node view) of a particular content type?

I am using Content Access Module and have rebuild permissions after enabling the module. After giving restricted access to users having role 'Data Entry Operator'. I have a content type delivery ...
0
votes
3answers
64 views

Hide single menu item from users without a specific role (without 3rd party module)

I have a menu and would like to hide a specific item if the currently authenticated users doesn't have the "editor" role, which i created. Since this is such a small thing, i would like to achieve ...
1
vote
2answers
111 views

Rules - send email when users role changes to x

I need to send an email when an admin changes a users role to role x. The email should not be sent if the users role is already role x and 'save' is pressed on the user page. I have set up a rule: ...
1
vote
1answer
82 views

view query alter : Subselects/query don't work with out brackets

I was trying to alter a view query with a subselect that looks like: $subquery1 = (db_select('users_roles', 'r') ->where('r.uid = users_node__users_roles.uid and r.rid=10')); ...
0
votes
2answers
37 views

How to write a module that changes user role when account is created

I am writing a module called "Applicant" and I want it to add a role called "applicant" to a user after the user creates their own account. applicant.info name = Applicant description = Handles ...
-1
votes
3answers
50 views

Redirecting and removing user role after user account submit

I like to redirect my users after they submit their user/edit page. On their user/edit submit i like to remove a certain role from them as well. The redirect hasn't been a problem however removing the ...