Thursday, February 21, 2013

Re: [Rails] Complex abilities and scoping of records

On 20 February 2013 23:56, Tim Uckun <timuckun@gmail.com> wrote:
> I have the following scenario.
>
> Users have various levels of ability. They can only view and edit
> their own records (their profile). Their managers can only view and
> edit their employees records. The regional managers can view and edit
> only the people in their regions and the corporate headquarters can
> view and edit all records. There are multiple regions so somebody
> can be the manager of the north region and somebody is the manager of
> the south region. They both have the role of "regional manager".

Is this a fully hierarchical network? If so then you could use a
child parent arrangement such that a user at one level can access all
the users below him.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate