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

[MM-493]: Fixed the bug 'don't have the permissions to create subscriptions for this project #495

Merged
merged 4 commits into from
May 17, 2024

Conversation

Kshitij-Katiyar
Copy link
Contributor

@Kshitij-Katiyar Kshitij-Katiyar commented May 16, 2024

Summary

Fixed the bug 'don't have the permissions to create subscriptions for this project'. The permissions for the guest users were not handled for groups, it was only handled for projects. Updated the condition to include group-level access as well.

Ticket Link

Fixes #493

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix @Kshitij-Katiyar 👍 LGTM, just want to make sure I understand where the code was before and how this safely fixes the issue

server/webhook.go Outdated Show resolved Hide resolved
@mickmister mickmister added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 16, 2024
Copy link

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has been tested for the following conditions:-

  • Subscriptions created for normal user access in a project(whether it is inside a group)
  • Subscriptions not created for guest user access in a project(whether it is inside a group)

The above PR is working fine for all the above conditions, LGTM. Approved.

@mickmister mickmister added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 17, 2024
@mickmister mickmister merged commit 69ab85a into master May 17, 2024
7 checks passed
@mickmister mickmister deleted the MM-493 branch May 17, 2024 14:17
@mickmister mickmister mentioned this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

You don't have the permissions to create subscriptions for this project
3 participants