jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
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.
 
 
 
 
 

30 lines
823 B

extends ../layout.pug
include ../mixins/mypermissions.pug
block head
title #{__('My Permisions')}
block content
.board-header
h1.board-title #{__('My Permissions')}
br
hr(size=1)
h4.no-m-p #{__('Board-specific permissions')}
if user.ownedBoards && user.ownedBoards.length > 0 || user.staffBoards && user.staffBoards.length > 0
ul
for b in user.ownedBoards
li
a(href=`/${b}/manage/mypermissions.html`) /#{b}/
for b in user.staffBoards
li
a(href=`/${b}/manage/mypermissions.html`) /#{b}/
else
p #{__('None')}
hr(size=1)
h4.mv-5 #{__('Account permissions')}
|
if permissions.get(Permissions.MANAGE_GLOBAL_ACCOUNTS)
|
a(href=`/globalmanage/editaccount/${user.username}.html`) [#{__('Edit')}]
- const jsonPermissions = permissions.toJSON();
+mypermissions(jsonPermissions)