Great module - need to remove a rogue underscore to allow admins to see all

chrisshattuck - June 16, 2008 - 23:10
Project:Private nodes
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hey there,

This module is doing exactly what we need it to do, thanks!

There is a slight error in the user_access() in private_nodes_check_access(), where the role is set to administer_users. Instead it should be 'administer users' (no underscore):

$is_admin = user_access('administer users');

Sorry about no patch, I just got set up on new computer still need stuff set up to do the diffs.

Thanks again!
Chris

#1

amontero - August 15, 2009 - 19:26
Status:active» needs review

Playing 'bug bingo' :)
Patch attached.

AttachmentSize
private_nodes.module.patch 606 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.