binding hook to specific roles

Added by mrks jss over 5 years ago

Hello, i have extended the code from
a little to fit my needs.

Now i am stuck with roles/permissions.

i want to check/uncheck the view permissions under administration/roles. i managed to edit my plugins init.rb so that it shows a checkbox for my plugin. but the hook is called any time for any user. how can i prevent this for some roles?