Closed (fixed)
Project:
Field Permissions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 01:16 UTC
Updated:
28 Nov 2009 at 16:00 UTC
Sometimes, it's really difficult to guess what's going on when CCK invokes content_access() to check access to view or edit fields, specially when more than one module implementing hook_field_access() is installed.
So I wanted to create a report to help us all troubleshoot the execution of content_access(). This report should simulate different operations (create, edit, edit own, view and view own) to access a CCK field in a particular node by a given user account as if this account was assigned to each role defined in the system, and it should report detailed information about results of calling node_access(), as well as each individual implementation of hook_field_access().
Comments
Comment #1
markus_petrux commentedCommitted to CVS :)
http://drupal.org/cvs?commit=286024
Comment #2
markus_petrux commentedI'm going to re-open this issue, because it seems to me (well, after testing it here at our office) it needs a bit more love.
Actually, when a user account, only the roles that are assigned to the specified user should be checked, so that it can be checked that particular account more clearly. When no user account is specified, the it's fine to try with all roles, more or less as it works now.
Comment #3
markus_petrux commentedI'll try to finish this during the next weekend. If no other issues are reported, then my plan is to pack the first stable release of this module.
Once than happens, I'll try to find some time to port all the features to D7 (#598924: Port of Field Permissions to D7).
Comment #4
markus_petrux commentedDone! I think I'm now a bit more happy about this feature.
http://drupal.org/cvs?commit=288996