Closed (outdated)
Project:
Private
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2010 at 16:36 UTC
Updated:
18 Feb 2017 at 12:58 UTC
Jump to comment: Most recent
I have a site with a node created before I installed private.module. This node is not editable by its creator.
I then installed private and made it so that all nodes of "content type A" are private (hidden so user cant change it). I create another node with the same user... that new node is private to all other users BUT the author can now edit the node. He still can't edit the other node that isnt private (which is good).
So private module doesn't seem to obey the "edit own content type A content" permissions.
Comments
Comment #1
David Lesieur commentedI have also observed this problem.
Comment #2
jonlibrary commentedI have a Rule (using the Rules module) for revoking a user's role after three nodes of a certain type are created. However, even after I revoked the role that had allowed them to create and edit content of a certain type, users could still edit nodes that were marked private.
Hopefully this doesn't make things worse, but I got around this by changing lines 118 and 119 in private.module to FALSE:
118 'grant_update' => FALSE, // changing from TRUE, trying to fix not editing private nodes after revoking role
119 'grant_delete' => FALSE, // ditto
Everything seems to work properly...
Comment #3
vyahhi commentedSame bug with the latest version 7.x-1.2.
Comment #4
adamps commentedThe D7 issue is #2660598: Private access bypasses content type edit permissions. D6 is no longer supported so closing this issue.