Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create a role R, assign it "access content" permission from the node module and "access biblio content", "edit all biblio entries", "edit own biblio entries" and all the "show" permissions from the biblio module. But, a user with role R cannot edit any bibliographic entry (with 6.x-1.4 it is possible). If R is given the "administer nodes" permission, then the user can edit biblio entries, but also administer all other node types.
Comments
Comment #1
rjerome CreditAttribution: rjerome commentedSorry about that, I see the problem and if you want an immediate solution, just edit the biblio.module file and add TRUE to the end of line 281 (which is the "edit all biblio entries" line) like this ( you can omit the "line 281..." comment of course)...
Comment #2
lifepillar CreditAttribution: lifepillar commentedThanks, that fixes the problem.
Comment #4
michaeltt CreditAttribution: michaeltt commentedI found a related bug where users cannot edit their own content. Module code (280) is
case 'update':
if (user_access('edit all biblio entries')) return TRUE;
if (user_access('edit own biblio entries') && $user->uid != $node->uid) return FALSE;
break;
Editing it
case 'update':
if (user_access('edit all biblio entries')) return TRUE;
if (user_access('edit own biblio entries') && $user->uid != $node->uid) return FALSE;
if (user_access('edit own biblio entries') && $user->uid = $node->uid) return TRUE;
break;
Fixed the problem
Comment #5
rjerome CreditAttribution: rjerome commentedThat should be a double equals sign... but otherwise I'll include it in the code.
Comment #6
Liam MorlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.