-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix milestone appliance and permission checks #4271
Conversation
Fix missing permission check Signed-off-by: Jonas Franz <info@jonasfranz.software>
Codecov Report
@@ Coverage Diff @@
## master #4271 +/- ##
==========================================
- Coverage 19.97% 19.96% -0.02%
==========================================
Files 153 153
Lines 30523 30530 +7
==========================================
- Hits 6097 6094 -3
- Misses 23512 23521 +9
- Partials 914 915 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Gitea copyright notice to header of this file
routers/api/v1/repo/issue.go
Outdated
} | ||
return | ||
} else { | ||
// setting labels is only allowed if user is writter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment should be ... is not a writer
.
Otherwise LGTM |
@techknowlogick added copyright |
Fixes #4270 and adds missing permission check which got removed.
Without the permission check every user can assign labels, etc to new issues if created via API.