From f7f2653378bf7e06279890a893d94d973123826d Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 2 Jan 2019 23:59:29 -0700 Subject: [PATCH] Fix error when attempting to login without permission --- action.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/action.php b/action.php index 66035ae..489b287 100644 --- a/action.php +++ b/action.php @@ -13,10 +13,6 @@ if ($VARS['action'] !== "signout") { dieifnotloggedin(); } -if ((new User($_SESSION['uid']))->hasPermission("ADMIN") == FALSE) { - die("You don't have permission to be here."); -} - /** * Redirects back to the page ID in $_POST/$_GET['source'] with the given message ID. * The message will be displayed by the app.