How to create Access Rules for a plugin?

Asked

Viewed 65 times

0

I am developing a plugin for REDMINE. I have a menu created using the :top_menu, so it is at the top of REDMINE , with the Administration , etc...

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

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

1 answer

1

just check if the level of the logged in user is that...

<%= user_current? %> Botão <% end %>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.