You can use something like this in a view:
<% if current_user.roles.include?(Role.find_by_name("Client Manager") do %>
<!-- your html here -->
<% end %>
Would that be ok? This presumes that you're using the User Engine...
- james
On 3/28/06, Piotr Usewicz <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a small problem here. I have few roles, eg. Client User and
> Client Manager. I would like to let view both of them a certain View,
> but normal Client User shall not see any blocks of HTML code like
> payment lists etc. on a page. How can I achieve this?
>
> Piotr
>
> _______________________________________________
> engine-users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>
--
* J *
~
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org