mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
627 B
20 lines
627 B
extends ../layout.pug
|
|
include ../mixins/managenav.pug
|
|
include ../mixins/boardheader.pug
|
|
include ../mixins/mypermissions.pug
|
|
|
|
block head
|
|
title /#{board._id}/ - My Permissions
|
|
|
|
block content
|
|
+boardheader('My Permissions')
|
|
br
|
|
+managenav('staff')
|
|
hr(size=1)
|
|
h4.mv-5 Board-specific permissions
|
|
|
|
|
if permissions.get(Permissions.MANAGE_BOARD_STAFF) && user.staffBoards.includes(board._id)
|
|
|
|
|
a(href=`/${board._id}/manage/editstaff/${user.username}.html`) [Edit]
|
|
- const jsonPermissions = permissions.toJSON();
|
|
+mypermissions(jsonPermissions, Object.keys(jsonPermissions).filter(p => p.startsWith('MANAGE_BOARD_')))
|
|
|