Questions tagged [drupal-roles]

Roles allow defining what a Drupal user can do by assigning the relevant permissions to a role (e.g. editor) that is then assigned to users. Don't confuse this tag with drupal-rules.

Roles allow defining what a Drupal user can do by assigning the relevant permissions to a role (e.g. editor) that is then assigned to users. Don't confuse this tag with .

14 questions
9
votes
5 answers

How do I give a specific user editing rights to a specific node?

How do I give a specific user editing rights to a specific node? I have a user role named "Student". Multiple users have that role, only a few of them can edit a node. How can I realise this?
Paul
  • 858
  • 2
  • 10
  • 27
3
votes
2 answers

Is there a way to let multiple users or a role upload photos to one single gallery in drupal 7?

Is there a way to let multiple users or a role upload photos to one single gallery in drupal 7? The users can upload images to their own (self created) gallery at this moment, but I want them to be able to upload images in to a single general…
meerkoffie
  • 31
  • 4
1
vote
1 answer

Restrict comments in content type based on user role in Drupal

I am building a site in Drupal, where there are 2 different types of registered users. Let us call them basic users and premium users. These could be roles or groups or something... Authorized users will be able to publish pages with simple content…
Kostas Maragos
  • 569
  • 4
  • 18
1
vote
2 answers

How to restrict a Drupal block from being displayed if a user does not have a particular permission?

I know that I can use the Show block for specific roles setting to manually configure whether a block is displayed to users. I have a module that defines custom blocks. Rather than relying on the administrator to restrict the block visibility based…
Matt V.
  • 9,703
  • 10
  • 35
  • 56
1
vote
1 answer

Drupal 7 all Users of one role need to be accessible from other role

We are using Drupal Commerce in our website. We have multiple roles in this website ex. Customer, Customer representative, Content editor and Admin. Users with "Customer" roles will be allowed to purchase product and make orders, Edit…
1
vote
3 answers

Drupal: block node editing for specific user(role)

At my Drupal 7 site every registred user can add nodes. But sometimes i'd like to put some users to group e.g. "Temp ban" and block node add/edit for this users/group. How can I do it?
okolobaxa
  • 338
  • 1
  • 4
  • 16
1
vote
1 answer

In Drupal Site:how to display the list of corresponding users by using user reference module

I have 3 user role that Senior->users(senior1,senior2) Sub_Senior->users(subsenior1,subsenior2) junior->users(j1,j2,j3,j4) the user subsenior1 is belonging to senior2 , user subsenior2 is belonging to senior1. the users j1,j2 belonging to subsenior1…
1
vote
1 answer

Drupal Custom Login by Role

I have a cURL PHP script which is able to validate a username/password against the external source. What is the best way to integrate this as a login requirement for (select) users in Drupal? The idea would be to add the external authentication as a…
Chris
  • 21
  • 2
0
votes
2 answers

Register new anonymous user with specific role through rest api in Drupal 8

I'm using Drupal 8 rest service to register a new anonymous user and it works fine; the user is created in Drupal. Then I tried to specify a custom role sending the request below { "name": { "value": "FooBar" }, "mail": { "value":…
Mario Catena
  • 575
  • 1
  • 8
  • 20
0
votes
1 answer

Show/hide navigation item depending on role of user in Drupal 8

I'm looking for a method to show or hide a navigation menu item depending on if the user is logged in or not. How can I accomplish this with Drupal 8? Should this be done with CSS?
Ian Martens
  • 45
  • 1
  • 1
  • 8
0
votes
1 answer

Drupal 8 - Admin - Show only content for that role

I have a problem In the Admin, even if you assign privileges to the roles, defining what contentypes they can manage and which not, when a person who only has access to 1 type of content, when accessing the ADMIN, sees ALL the contents. Yes, only…
Javier
  • 395
  • 3
  • 18
0
votes
1 answer

Role assignment on completion of Quiz

I want to assign the user a role on successful completion of quiz so that a badge based on role can be assigned. Here is what I have tried: 1. In Quiz module, Taking Options in Edit Quiz, added Assign Action of Node > save content 2. Created a VBO…
0
votes
1 answer

access to custom admin menu item by role in Drupal 7

I added a custom admin menu item which I'd like to show up for non-admin users with specific roles. Is there a way to accomplish this? Thanks in advance! Lee
LEN
  • 35
  • 1
  • 10
0
votes
1 answer

How to assign a role programatically in Drupal 6? 'role' => 'rolename didn´t worked

I have this function to create a new user using the information that is inside a node form, in my Drupal 6 site: function altas_create_user($name,$pass,$mail) { $newuser = array( 'name' => $name, 'mail' => $mail, 'pass' => $pass, …
Rosamunda
  • 14,620
  • 10
  • 40
  • 70