I use the module 'simpleaccess' to limit the access per node basis to certain user roles, and it works like a charm with all my nodes and nodetypes. Unfortunately except with tribune nodes :(

I don't know whether this is a bug or just a feature request ;) but I'd find it very useful to have an easy way to restrict the access to certain tribunes.

Comments

_Grey_’s picture

I have the same problem. :(

agentrickard’s picture

Category: support » bug

This is because tribune_access trumps all node access modules by returning a check on the 'View' operation.

This is not best practice in Drupal coding. See blog.module, for instance --> http://api.drupal.org/api/function/blog_access/6

Node modules should normally not return a value for $op == 'view'.

Find these lines in tribune.module and just comment it out for now. I don't have time for a patch.

    case 'view':
      return user_access('read tribunes');
agentrickard’s picture

Title: tribune doesn't work with simpleaccess module » Tribune bypasses node access modules

Better title, this breaks OG, Domain Access, and TAC as well.

SeeSchloss’s picture

Version: 6.x-2.0-beta2 » 6.x-2.x-dev
Assigned: Unassigned » SeeSchloss
Status: Active » Fixed

Well, that should be fixed. But is it me or is Drupal's permissions system not very flexible ?
Or maybe the documentation is hidden somewhere, but I can't seem to find a way to allow people to choose who can post stuff in their tribunes.

Status: Fixed » Closed (fixed)

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