Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show schedule options in advanced and modify task wizard if user has correct permissions #2472

Merged

Conversation

sarahd93
Copy link
Contributor

What:

The advanced task wizard offers the user to create a schedule even if the user does not have the permissions to do it (for example on a GSM without schedules). The modify wizard has the same problem.

Why:

Only allow the use of schedules in the wizards if the user can access and create them like we already do for alerts. Also don't show the modify wizard when both alerts and schedules are not available since it is useless in that case.

How:

Added tests for both wizards and tested it manually with a user that does not have the correct permissions.

Checklist:

@sarahd93 sarahd93 changed the title Only show schedule options in advanced and modify task wizard if users has correct permissions Only show schedule options in advanced and modify task wizard if user has correct permissions Sep 25, 2020
@sarahd93 sarahd93 marked this pull request as ready for review September 25, 2020 10:30
@sarahd93 sarahd93 requested review from a team, saberlynx and swaterkamp September 25, 2020 10:30
@bjoernricks bjoernricks merged commit bb24ca9 into greenbone:gsa-20.08 Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants