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

Fix milestone appliance and permission checks #4271

Merged
merged 4 commits into from
Jun 19, 2018

Conversation

jonasfranz
Copy link
Member

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.

Fix missing permission check

Signed-off-by: Jonas Franz <info@jonasfranz.software>
@codecov-io
Copy link

codecov-io commented Jun 18, 2018

Codecov Report

Merging #4271 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
routers/api/v1/repo/issue.go 0% <0%> (ø) ⬆️
modules/process/manager.go 69.56% <0%> (-4.35%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f2f575...602cbc1. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 18, 2018
@lunny lunny added the type/bug label Jun 18, 2018
@lunny lunny added this to the 1.5.0 milestone Jun 18, 2018
Copy link
Member

@techknowlogick techknowlogick left a 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

}
return
} else {
// setting labels is only allowed if user is writter
Copy link
Member

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.

@lunny
Copy link
Member

lunny commented Jun 19, 2018

Otherwise LGTM

@bkcsoft bkcsoft added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 19, 2018
@lafriks
Copy link
Member

lafriks commented Jun 19, 2018

@techknowlogick added copyright
@lunny fixed comment

@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 19, 2018
@lunny lunny merged commit 467ff4d into go-gitea:master Jun 19, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Milestone doesn't get assigned via API
7 participants