0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-26 21:55:43 +01:00
gitea/routers
wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf d4e35b9dc6
Hide 'New Project board' button for users that are not signed in (#12547)
* hide: 'New Project board' button

* there is no reason to show the button for users that are not signed in

* update template: specifies the condition together with another one

as per lafriks' suggestion in the comment

* chore: add proper user authorization check

* chore: also hide button if repo is archived

* chore: show project board edit/delete menu to authorized users only

* chore: drop the redundant IsSigned check

* CanWriteIssues and CanWritePulls implies (and requires) signed in user

* Add CanWriteProjects and properly assert permissions

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-08-22 02:58:59 -04:00
..
admin
api/v1
dev
events
org
private
repo Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
routes Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
user
utils
home.go
init.go
install.go
metrics.go
swagger_json.go