Active
Project:
EazyEdit
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2010 at 15:24 UTC
Updated:
8 Jun 2011 at 18:41 UTC
There is no reason to check for "administer nodes" to provide an edit link. The node itself should be checked for edit access.
Comments
Comment #1
mstef commentedYou can use node_access()
Comment #2
tdway commentedI don't think this is a bug so I'm changing to feature request. We could use node_access instead, but I'm not sure you would want eazyedit links showing up in all cases where a user has node_access permissions. It seems more consistent to use 'administer nodes' since we are using other perms like administer blocks, administer comments, administer content types, etc. In order to make node_access work well we might need to introduce an eazyedit specific permission. So for example if an end user had permission to delete a node, but you didn't want eazyedit links to show up, you could accommodate that.
Comment #3
mstef commentedIt doesn't matter to me. I'm just suggesting you use node_access() to determine if the given user has edit permissions. Most sites will only have 1 user that has admin nodes permission. Just seems more useful.
Comment #4
lhugg commentedWhat is the status of this request? Mikestefff is right. The administer nodes permission is causing us all kinds of problems, since it would give ordinary content editors too much power.