forgejo/templates
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 Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
base Kanban board (#8346) 2020-08-16 23:07:38 -04:00
custom
explore Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
mail Fix nil pointer in default issue mail template (#11862) 2020-06-12 11:56:31 +03:00
org Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
pwa Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
repo Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
status Make error pages translatable (#11163) 2020-04-27 18:03:15 -05:00
swagger Kanban board (#8346) 2020-08-16 23:07:38 -04:00
user Add placeholder text for "Add SSH/GPG Key" forms (#12533) 2020-08-20 11:51:34 -04:00
home.tmpl
install.tmpl Change default charset for MySQL on install to utf8mb4 (#10989) 2020-04-06 09:33:15 -04:00