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

ui: hide gear icon for user who can't use them on sidebar #10750

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

a1012112796
Copy link
Member

reason:
If user can't choose the Assignees labels and Milestone It's
not usefull to show a gear label , and it It will mislead the
user into thinking that it's a BUG rather than thy don't have
permission to chosse them.

reason:
If user can't choose the Assignees labels and Milestone It's
not usefull to show a gear label , and it It will mislead the
user into thinking that it's a BUG rather than thy don't have
permission to chosse them.

Signed-off-by: a1012112796 <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #10750 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10750      +/-   ##
==========================================
- Coverage   43.54%   43.53%   -0.01%     
==========================================
  Files         589      589              
  Lines       82662    82662              
==========================================
- Hits        35992    35990       -2     
  Misses      42198    42198              
- Partials     4472     4474       +2     
Impacted Files Coverage Δ
modules/indexer/stats/db.go 50.00% <0.00%> (-9.38%) ⬇️
models/gpg_key.go 53.42% <0.00%> (-0.53%) ⬇️
services/pull/pull.go 35.00% <0.00%> (+0.29%) ⬆️
modules/queue/workerpool.go 58.00% <0.00%> (+1.06%) ⬆️

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 ca18110...4625a8f. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 17, 2020
@GiteaBot GiteaBot 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 Mar 17, 2020
@GiteaBot GiteaBot 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 Mar 17, 2020
@techknowlogick techknowlogick added the topic/ui Change the appearance of the Gitea UI label Mar 17, 2020
@techknowlogick techknowlogick added this to the 1.12.0 milestone Mar 17, 2020
@techknowlogick techknowlogick merged commit 2f92831 into go-gitea:master Mar 17, 2020
@a1012112796 a1012112796 deleted the hide_choice branch March 18, 2020 05:21
@a1012112796
Copy link
Member Author

a1012112796 commented Mar 18, 2020

suggest add this change on V1.11. @techknowlogick @lunny

a1012112796 added a commit to a1012112796/gitea that referenced this pull request Mar 27, 2020
In gitea now seting, only users have write permission can add Assignees, but if a
user who don't have write permission also can add Assignees when they creat a Pull
Request from a forked repo ,Because It haven't check the permission, so it's a bug.
This PR should fix this bug by add a check for write permission.

two other small changes:

* hide gear on new PR page when it's not necessary like go-gitea#10750,
* remove some unusefull comments.

Signed-off-by: a1012112796 <[email protected]>
@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. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants