Made manage sections default to their actual default pages.

This commit is contained in:
flash 2018-07-10 03:04:44 +02:00
parent 6e1a2d68b9
commit c727491aec
4 changed files with 4 additions and 4 deletions

View file

@ -11,6 +11,7 @@ $changelogPerms = perms_get_user(MSZ_PERMS_CHANGELOG, $app->getUserId());
$queryOffset = (int)($_GET['o'] ?? 0); $queryOffset = (int)($_GET['o'] ?? 0);
switch ($_GET['v'] ?? null) { switch ($_GET['v'] ?? null) {
default:
case 'changes': case 'changes':
if (!perms_check($changelogPerms, MSZ_CHANGELOG_PERM_MANAGE_CHANGES)) { if (!perms_check($changelogPerms, MSZ_CHANGELOG_PERM_MANAGE_CHANGES)) {
echo render_error(403); echo render_error(403);

View file

@ -2,6 +2,7 @@
require_once __DIR__ . '/../../misuzu.php'; require_once __DIR__ . '/../../misuzu.php';
switch ($_GET['v'] ?? null) { switch ($_GET['v'] ?? null) {
default:
case 'listing': case 'listing':
echo 'forum listing here'; echo 'forum listing here';
break; break;

View file

@ -4,6 +4,7 @@ require_once __DIR__ . '/../../misuzu.php';
$templating = $app->getTemplating(); $templating = $app->getTemplating();
switch ($_GET['v'] ?? null) { switch ($_GET['v'] ?? null) {
default:
case 'overview': case 'overview':
echo $templating->render('@manage.general.overview'); echo $templating->render('@manage.general.overview');
break; break;
@ -19,8 +20,4 @@ switch ($_GET['v'] ?? null) {
case 'settings': case 'settings':
echo 'somewhat soon i guess'; echo 'somewhat soon i guess';
break; break;
default:
header('Location: ?v=overview');
break;
} }

View file

@ -18,6 +18,7 @@ $tpl->vars([
]); ]);
switch ($_GET['v'] ?? null) { switch ($_GET['v'] ?? null) {
default:
case 'listing': case 'listing':
if (!$canManageUsers && !$canManagePerms) { if (!$canManageUsers && !$canManagePerms) {
echo render_error(403); echo render_error(403);