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

markus_petrux’s picture

Status: Active » Fixed
markus_petrux’s picture

Status: Fixed » Active

I'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.

markus_petrux’s picture

I'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).

markus_petrux’s picture

Status: Active » Fixed

Done! I think I'm now a bit more happy about this feature.

http://drupal.org/cvs?commit=288996

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.