James Adam napisaƂ(a):
> 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...
> 

Yeah, I have figured it out. But still, it won't work as expected.

My application shall grant access to 'our' users, and our client's users.

So our users arent assigned to Client roles, but instead like Helpdesk 
Users or whatever.

Here, if a certain user (or admin) arent assigned Client Manager role 
won't see the block aswell... Which is not the way it should be.

Any solution? :)

Peter

_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to