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
1answer
14 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
29 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
23 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
136 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 ...
0
votes
0answers
16 views

Entity form with roles connection

I have a situation wherein an employee(role) should choose his/her manager(role). (I have created it using, entity reference and views). Now, I wanted to show the employees under one specific ...
0
votes
1answer
11 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
14 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
22 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
20 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
46 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 ...
0
votes
2answers
39 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
45 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
27 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
2answers
44 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 ...
0
votes
0answers
5 views

Organic Groups (og) user roles strange behaviour

Hi Drupal Community, I am relitively new with Drupal, even worse so, I've inherited a Drupal 6 based project. Experiencing some wierd behaviour, this maybe a bug with the module or something that's ...
0
votes
1answer
40 views

Drupal 7: Default terms based on user role

I have Node with taxonomy terms. Example Term A Term B Term C and user role like this Role 1 Role 2 Role 3 Using Taxonomy Access Control(TAC) I can limit Role 1 can add all terms, Role 2 ...
0
votes
0answers
18 views

Different registration forms for different roles: using autoassignrole?

I'm having some trouble implementing the autoassignroles module. We need a way to sign up 'vendors' on a site. We may also have other types of users in the future, so I don't want to assume all ...
0
votes
2answers
25 views

Add user's role as a class to all user links

My goal is to attach a users role as a class to their user name anywhere it is displayed so I can color the link based on role. I can get roles of every displayed user link using ...
0
votes
0answers
23 views

How to hide a role from another role in Drupal Commons?

I am currently working on a project in Drupal commons and I have 4 types of roles in the project. The 4 roles have their own functionality and I want to hide a role and its activities from other role ...
0
votes
2answers
63 views

How to show a link only if a node author has a certain role

I have a block with which I'm creating a menu for users <?php global $user;?> <a href="/user/<?php print $user->uid; ?>/ideabooks">MENU1</a> <a href="/user/<?php ...
0
votes
0answers
36 views

Creating JSON-RPC PHP client/server setup: permissions question

I am currently creating two modules in two sites, a client and a server on each site respectively. I want the client to be able to be called from code in any module that needs to communicate with the ...
0
votes
1answer
48 views

How to create specific role permissions for authenticated users in Drupal 7 [closed]

I'm developing a Drupal 7 based site. As an administrator of a site I want to add some specific access permissions for authenticated users. By default in Drupal authenticated users can read the ...
0
votes
0answers
4 views

Creating groups without having the group owner as part of the group

My question is .. can I create a group without having the group owner as part of group i.e., an organic group with 0 (zero) members. In my drupal site there are two roles faculty students. A ...
1
vote
1answer
31 views

Taxonomy as Role

I am building an application for a university where teachers will submit questions(MCQs) into Topics(Vocabulary) containing many terms infact in hundreds. Our business logic is so that teachers will ...
1
vote
1answer
163 views

How to create user with role through REST service (Drupal 7)

I could able to create a new user by the following JSON format.(Using POSTER add-on to post this data to REST service.) {"name":"user34","pass":"3323","mail":"sample@example.com","status":"1"} My ...
0
votes
1answer
39 views

Organic Groups admin has can't edit roles and permissions in groups

I have a user who is an "administrator member" of a group called "Fancy group". "Administrator members" of this group have permission to administer roles and permissions within the group. but my ...
0
votes
1answer
59 views

Page visible for authenticated user, not custom role

I have a custom module that has type MENU_LOCAL_TASK with path user/%/custom-page. The page callback is displaying a content and with custom page arguments and access arguments functions, only the ...
0
votes
1answer
21 views

limit access to some configuration pages (manage display and manage fields)

I have editor and administrator role in my website, the editor role must have "Administer vocabularies and terms" permission (in admin/people/permissions page), how can I restrict editors from ...
1
vote
1answer
43 views

How can I export shortcut sets and shortcut links in Drupal 7?

I am using Drupal 7 and I have some shortcut sets (per role using the shortcut per role module) and shortcut links in them and I would like to export them either using the features functionality or ...
0
votes
1answer
52 views

Role based menu redirect

Setup: I have a main module (called public) and several sub-modules that extend the support offered by the public module. A sub-module (let's call it sub) functions can be accesed only by users with ...
0
votes
0answers
35 views

jQuery Injector, jQuery, and cookies - only working for Admin

I have a function that I am using using the js injector module to set cookies so that I can access them at a later stage (function($) { $(window).on('load', function(){ ...
0
votes
0answers
37 views

How do I give a user access to only one taxonomy term?

Any help on this would be greatly appreciated. I've tried both the Taxonomy Term Permissions and Taxonomy Access Control modules with no luck. I have a taxonomy vocabulary set up with various ...
0
votes
3answers
35 views

Show link based on role

In page.tpl.php I'm displaying a link for user page. For an example: <?php echo l(t("My offers"), 'user/' . $user->uid . '/offers'); ?> So when a user clicks on the link it goes to ...
0
votes
2answers
27 views

Set up login to open a specific view [duplicate]

I created a page view where user only get articles to edit. How can I set up the page that it opened when a user logged in?
1
vote
1answer
52 views

Which hook is invoked when a user's roles are changed?

I am trying to set a custom role expiration date in a subscription website using Ubercart and Paypal. Role expiration date is set by the role expiry module when a user completes payment. I am trying ...
0
votes
0answers
21 views

Permissions not responding

I have a problem with allowing access for other roles to the admin bar despite allowing them to do so in permissions. I must be missing something... also while ticking every allowable option under ...
0
votes
0answers
54 views

How to override permissions of roles in a custom module?

I want to add some given nodes of type "webform" to different groups (organic groups) by their owners which have the role teamleader.Therefore an entity_reference has to be put to each node which ...
1
vote
0answers
48 views

How to translate a custom user role name?

I've added a few custom user roles with english names. I need to translate them to other languages now. What is the best way to do this? According to the user_roles function only "core provided" role ...
0
votes
0answers
23 views

Can't permanently revoke user roles

I run a very large D6 college website (upgrading to D7 isn't feasible right now due to time/budget restraints). I noticed today that a few users have the "admin" role even though they've never been ...
1
vote
1answer
24 views

Conflicting drupal role ids

I know that you can create user programtically and set a role: $roles = array( DRUPAL_AUTHENTICATED_RID => 'authenticated user', 4 => 'Member'); $fields = array( 'name' => ...
-1
votes
1answer
14 views

apply condition to pages created by user roles

if(isset($node) && $node->type == 'page') { } In the above code, I need add one more condition, so that it get applied on those pages which was created by users having user role "EDITOR" ...
1
vote
2answers
304 views

D7 - Filter a view based on current user's roles?

Using Drupal7, Views3 and the Node Reference module, I'm using a view to populate a node reference field on a custom content type. (So it's a view of "Reference" display type.) I want to filter this ...
0
votes
0answers
42 views

Link for a specific role to add content

I have created a menu for a specific role, how i can add a link, so the role could create content ?(I dont want this role to have administration menu, just a normal menu).
1
vote
1answer
37 views

How to hide a view from certain roles?

I am trying to hide some views (and their menu links) from anonymous users and some other roles i have created, how this can be done ?? Thanks.
0
votes
1answer
18 views

Remove node authored by user when their role changes

I have two roles on my site: Standard and Premium. Standard users are able to upgrade to Premium accounts. When this happens, I would like to deleted all content that the Standard users has authored. ...
0
votes
0answers
25 views

Role permissions on other users

I'm working on my drupal website. I need that Manager(a custom user role) and Publisher(a custom use role) can upload documents (a custom content type) and until here it's all ok. Then i need also ...
0
votes
2answers
32 views

Specific user-based admin view

For testing whether Drupal 7 runs on an local nginx server: One of the user should get more rights than an editor/writer, but less than an admin. Is there a way to create a 2nd specific admin role ...
0
votes
2answers
133 views

Assigning a role based on signup url on a Drupal 7 site?

I need to give out a URL that will grant people who sign up at that URL a specific role. If possible I would like to also have the user fill out profile fields as part of user registration. I think ...
1
vote
1answer
48 views

assign permissions to a created role?

i want to assign permissions to a role in my hook_install() , but the permissions that i'm adding are part of my modules hook_permission() don't exist yet? so how to grant permissions role created in ...
0
votes
2answers
146 views

Allow user to choose role immediately after registration

I have 2 roles (driver, owner) with very different permissions on my site. I want to allow Facebook Connect during registration, so I am resigned to a 2-step registration process: Register as a ...