1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 20:51:50 +01:00

inc/mod/pages.php only show your board in boardlist if you are ranked below admin

This commit is contained in:
undido 2014-09-25 07:57:51 -03:00
parent c8315cf8f6
commit b24ec23cbb

View File

@ -1799,12 +1799,25 @@ function mod_user($uid) {
$log = array();
}
if ($mod['type'] >= ADMIN){
$boards = listBoards();
} else {
$boards2 = explode(',', $user['boards']);
foreach($boards2 as $string){
$boards[] = array("uri"=>$string, "title"=>"MY BOARD");
}
var_dump($boards);
}
$user['boards'] = explode(',', $user['boards']);
mod_page(_('Edit user'), 'mod/user.html', array(
'user' => $user,
'logs' => $log,
'boards' => listBoards(),
'boards' => $boards,
'token' => make_secure_link_token('users/' . $user['id'])
));
}