forgejo/templates/repo
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
..
branch
diff Do not show arrows on comment diffs on pull comment pages (#12434) 2020-08-08 09:22:34 +08:00
editor
issue Milestone Issue/Pull List: Add octicons type (#12499) 2020-08-17 15:11:42 -04:00
projects Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
pulls
release
settings Kanban board (#8346) 2020-08-16 23:07:38 -04:00
wiki
activity.tmpl
blame.tmpl
branch_dropdown.tmpl
commit_page.tmpl
commit_status.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl
commits_table.tmpl
create.tmpl
empty.tmpl
forks.tmpl
graph.tmpl Render the git graph on the server (#12333) 2020-08-06 09:04:08 +01:00
header.tmpl Kanban board (#8346) 2020-08-16 23:07:38 -04:00
header_icon.tmpl
home.tmpl
migrate.tmpl
migrating.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl
watchers.tmpl