Since Tribune overrides other permission modules I had the problem not to be able to choose the permission that only administrators and the author could read tribunes. I fixed the problem by changing this line in tribune.module:

return user_access('read tribunes');

to:

return user_access('read tribunes') and ($user->uid == $node->uid);

Just FYI for others who has the same problem and maby for the module author for a small change?

Anyhow, as others has stated; the module should be built otherwise as it ignores other permission modules settings.

Comments

agogo’s picture

Or with only access for author and admins:
return user_access('read tribunes') and (($user->uid == $node->uid) or (in_array('administrator', $user->roles)));

kubajs’s picture

Title: Permissions problem when trying to have author only access to tribune nodes » Zebra support
Version: 6.x-2.0-beta2 » 6.x-1.10

sorry i pasted unintentional comment here - can somebody delete this?

Flying Drupalist’s picture

Title: Zebra support » Permissions problem when trying to have author only access to tribune nodes
Version: 6.x-1.10 » 6.x-2.0-beta2
SeeSchloss’s picture

Status: Needs review » Closed (won't fix)

I... think this should work in 7.x