Questions tagged [drupal-permissions]

"User permissions" refers to the permissions defined by modules to allow users to do specific actions defined from modules. It is different from "file permissions," which are the access permissions users have for files in a file system.

In Drupal, every user has specific permissions that are indirectly assigned to each user; each user is assigned to a role, and the permissions are assigned to the roles.

Drupal core modules define a standard set of permissions, such as "administer users," "administer content," and "view content." Third-party modules can expand the permissions by implementing hook_perm() (Drupal 6) or hook_permission() (Drupal 7).

27 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
2
votes
3 answers

Dynamic forum permissions in Drupal

My users access Drupal through SSO and everytime the server authorizes them, it returns a set of permissions (groups/roles), according to which I need to dynamically set the User's forum permissions. So for example if a User logs in and the SSO says…
Kay Pale
  • 6,449
  • 7
  • 28
  • 28
1
vote
2 answers

How to assign a section to a specific node with Workbench?

I'm creating nodes using a custom modules $node = new stdClass(); $node->type = $link['content_type']; node_object_prepare($node); $node->uid = $user->uid; $node->name = $user->name; $node->title = $html['title']; $node->language =…
samwell
  • 2,757
  • 9
  • 33
  • 48
1
vote
1 answer

New operation in hook_access()

Is it possible to define a new operation for a node access? As I know, the operations for a node that are used in hook_access() are: create delete update view I have a custom content type for which I need another operation, such as "suggest."
hd.
  • 17,596
  • 46
  • 115
  • 165
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
1 answer

Drupal : access restriction on comments

I would like to have a restriction mechanism (access restrictions) on the comments that are posted on a node. In my system, all nodes are public. However, I would like the replies to be tied to Organic Groups so that only member of that group can…
1
vote
1 answer

Drupal permission for anonymous user

I have create module for uploading files into database, and only administrator can upload that files. So I have hook_permission for administer to upload files: function upload_permission() { return array( 'administer uploader' => array( …
1
vote
2 answers

Programmatically add user forum permissions in Drupal

I'd like to programmatically add user forum permissions in Drupal. Do I have to use ACL module? Is there any example out there, as the documentation is a bit thin?
Kay Pale
  • 6,449
  • 7
  • 28
  • 28
1
vote
2 answers

Drupal - hiding advanced post settings from users

I'm getting lost in the sea of allowable permissions in Drupal. I have a content-type which has revision and workflow settings all nicely setup, but I do not want my users to be able to see these options (new revision each time automatically, etc). …
erik
  • 3,810
  • 6
  • 32
  • 63
1
vote
4 answers

Access to field by node creation date in Drupal with CCK

I'm looking for a particular behaviour that grant permission to see one or more cck field based on date time creation of node. In particular i need to: Grant to role A: Full access to all CCK (old and new) Grant to role B: Access to all CCK but ONLY…
Dret
  • 11
  • 1
1
vote
2 answers

Hook perm for more than one content type

Drupal 6.x I have this module that manages four different content types. For that matter, how do I define permission for each content within the same module? Is that even possible? I can't figure out how to define permission for each content type…
Andrew
  • 1,035
  • 7
  • 22
  • 40
1
vote
0 answers

In Drupal 7's Workbench module, how do I set permissions for editing content by its current transition state?

In Drupal 7's Workbench module, how do I set permissions for editing content by its current state? For example, I want to prevent an authenticated user from being able to edit his own content when the content is in the Needs Review state, while…
1
vote
0 answers

can not save field permissions in drupal 6

I have added new fields to such content type in drupal 6, then go to permission page to enable these fields to specific role but I can not save the new permission. anybody can help me. Thanks in advance.
Ayman Hussein
  • 3,817
  • 7
  • 28
  • 48
0
votes
1 answer

File Not Found for private files that contains arabic characters in their names in Drupal

Edit: Now, I have managed to solve error 500 error.Now I receive a purely Drupal "File Not Found" for the private files that contained arabic characters in their file names. I have checked the file_managed table and If I change the filename for any…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
1
2