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

Send dedicated error message to the create ticket dialogue if create permission permission is missing. #1686

Conversation

jhelmold
Copy link
Member

@jhelmold jhelmold commented Sep 14, 2021

If the create permission permission is missing when creating a
ticket, a new, dedicated error message is now sent to GSA.

What:
In manage_sql_tickets.c in function create_ticket (..):
A new error code is returned in case of a missing create
permission permission.

In gmp_tickets.c in function create_ticket_run (..):
A new error message is sent to GSA if the create permission
permission is missing.

Why:
This change is part of a bug-fix.

How did you test it:
Tried to create a ticket with and without the create permission permission.

Checklist:

If the create permission permission is missing when creating a
ticket, a new, dedicated error message is now sent to GSA.

In manage_sql_tickets.c in function create_ticket (..):
  A new error code is returned in case of a missing create
  permission permission.

In gmp_tickets.c in function create_ticket_run (..):
  A new error message is sent to GSA if the create permission
  permission is missing.
@jhelmold jhelmold changed the title A new, dedicated error message is sent to the create ticket dialogue if the create permission permission is missing. Send dedicated error message to the create ticket dialogue if create permission permission is missing. Sep 14, 2021
@jhelmold jhelmold added the backport-to-stable This pull request will be backported to the stable branch label Sep 14, 2021
@jhelmold jhelmold marked this pull request as ready for review September 14, 2021 10:04
@jhelmold jhelmold requested a review from a team as a code owner September 14, 2021 10:04
timopollmeier
timopollmeier previously approved these changes Sep 16, 2021
@timopollmeier timopollmeier merged commit 5f13ef5 into greenbone:master Sep 16, 2021
timopollmeier added a commit that referenced this pull request Sep 16, 2021
Send dedicated error message to the create ticket dialogue if create permission permission is missing. (backport #1686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-stable This pull request will be backported to the stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants