bench-forgejo/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 Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 2020-07-05 20:07:07 -04:00
api/v1 Allow addition of gpg keyring with multiple keys (#12487) 2020-08-21 13:45:50 +03:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org Move jquery-minicolors to npm/webpack (#12305) 2020-07-29 14:44:23 -04:00
private Fix typos (#12542) 2020-08-20 09:53:06 -05:00
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 Allow addition of gpg keyring with multiple keys (#12487) 2020-08-21 13:45:50 +03:00
utils Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
home.go Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
init.go Add a storage layer for attachments (#11387) 2020-08-18 12:23:45 +08:00
install.go models: fix xorm variable clobber (#12231) 2020-07-13 09:58:55 +01:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00