scirius icon indicating copy to clipboard operation
scirius copied to clipboard

Basic permissions issues

Open brandonmreeves opened this issue 8 years ago • 2 comments

For the base user profile, when clicking on threshold, suppress etc within the rule page, if you are not staff or superuser, you receive an error. I recommend adding code to the page to only show the threshold and suppress links if you are not a basic user account for example in rule.html

content = ' ' {% if request.user.is_staff %} content = ' '; content = content + ' '; {% endif %}

This way only staff users will see the links to threshold rules and receive no error. Regular users will receive just a column with no options.

It is function: populate_topip_actions in rule.html

brandonmreeves avatar May 16 '17 23:05 brandonmreeves

@brandonmreeves - could you please submit a patch/pr ?

pevma avatar May 19 '17 07:05 pevma

pr created

brandonmreeves avatar May 22 '17 03:05 brandonmreeves