Made manage sections default to their actual default pages.
This commit is contained in:
parent
6e1a2d68b9
commit
c727491aec
4 changed files with 4 additions and 4 deletions
|
@ -11,6 +11,7 @@ $changelogPerms = perms_get_user(MSZ_PERMS_CHANGELOG, $app->getUserId());
|
|||
$queryOffset = (int)($_GET['o'] ?? 0);
|
||||
|
||||
switch ($_GET['v'] ?? null) {
|
||||
default:
|
||||
case 'changes':
|
||||
if (!perms_check($changelogPerms, MSZ_CHANGELOG_PERM_MANAGE_CHANGES)) {
|
||||
echo render_error(403);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
require_once __DIR__ . '/../../misuzu.php';
|
||||
|
||||
switch ($_GET['v'] ?? null) {
|
||||
default:
|
||||
case 'listing':
|
||||
echo 'forum listing here';
|
||||
break;
|
||||
|
|
|
@ -4,6 +4,7 @@ require_once __DIR__ . '/../../misuzu.php';
|
|||
$templating = $app->getTemplating();
|
||||
|
||||
switch ($_GET['v'] ?? null) {
|
||||
default:
|
||||
case 'overview':
|
||||
echo $templating->render('@manage.general.overview');
|
||||
break;
|
||||
|
@ -19,8 +20,4 @@ switch ($_GET['v'] ?? null) {
|
|||
case 'settings':
|
||||
echo 'somewhat soon i guess';
|
||||
break;
|
||||
|
||||
default:
|
||||
header('Location: ?v=overview');
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ $tpl->vars([
|
|||
]);
|
||||
|
||||
switch ($_GET['v'] ?? null) {
|
||||
default:
|
||||
case 'listing':
|
||||
if (!$canManageUsers && !$canManagePerms) {
|
||||
echo render_error(403);
|
||||
|
|
Loading…
Add table
Reference in a new issue