You might want to look at the ''link_if_authorized'' method
provided in
the UserEngine, and adapt that as necessary.
- james
On 12/22/05, Kyle Mathews <kyle-pIeWrqmHxcrwO1jAe6EQpA@public.gmane.org>
wrote:> I''m currently using the ACL (Access Control Lists) system in my
app.
> The access control is working great, but I''d like to use the
> permissions/roles setup in the database to hide links to areas a user
> may not have access for automatically. I''m guessing that you could
> setup a helper function to use instead of link_to and have it check
> the permissions, but I''m not sure where to start with this. Can
> someone point me in the right direction to do this?
>
> Thanks,
> Kyle
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>