How to create Access rules for a plugin?

0

I'm developing a plugin for REDMINE. I have menu created using :top_menu , so it stays at the top of REDMINE, next to Administration, etc ...

However, I want that not all users logged into the system, see this "Button". Only Users I designate to be previewed.

This is possible, and what access rules should I create?

    
asked by anonymous 09.04.2014 / 15:53

1 answer

1

Just check if the logged-in user level is that ...

<%= user_current? %> Botão <% end %>
    
10.05.2014 / 03:15