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
Comment #1
agogo commentedOr with only access for author and admins:
return user_access('read tribunes') and (($user->uid == $node->uid) or (in_array('administrator', $user->roles)));Comment #2
kubajs commentedsorry i pasted unintentional comment here - can somebody delete this?
Comment #3
Flying Drupalist commentedComment #4
SeeSchloss commentedI... think this should work in 7.x