mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-21 21:19:36 +01:00
inc/mod/pages.php only show your board in boardlist if you are ranked below admin
This commit is contained in:
parent
c8315cf8f6
commit
b24ec23cbb
@ -1799,12 +1799,25 @@ function mod_user($uid) {
|
|||||||
$log = array();
|
$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']);
|
$user['boards'] = explode(',', $user['boards']);
|
||||||
|
|
||||||
mod_page(_('Edit user'), 'mod/user.html', array(
|
mod_page(_('Edit user'), 'mod/user.html', array(
|
||||||
'user' => $user,
|
'user' => $user,
|
||||||
'logs' => $log,
|
'logs' => $log,
|
||||||
'boards' => listBoards(),
|
'boards' => $boards,
|
||||||
'token' => make_secure_link_token('users/' . $user['id'])
|
'token' => make_secure_link_token('users/' . $user['id'])
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user