I wonder if there is an easy way to do this:

I have nodes referencing users, using this module to control so that users can only see the nodes that they are referenced by. Now, there is a need for certain users to see all posts that reference certain other users.

So:
manager can see any nodes referenced to empl1, empl2, etc.

But, without giving administer nodes permission as that would give too much access.

Any thoughts?

TIA

Comments

danielb’s picture

I would make another module, and use it in conjunction with this one. The other module would give certain users access to posts that certain other users have access to.

I've done this before by having a list of users appear in a salesperson's profile, where the people are of the role 'manager' and of the same 'company' as the salesperson. The person or admin picks the salesperson's manager there.

danielb’s picture

I'd put the code up but I don't have access to the server it's on.

Magnity’s picture

Status: Active » Fixed

Thanks for the pointer... i'll have a go at this.

Status: Fixed » Closed (fixed)

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