From 0927d9e681d4e0120b15dadd3893cba60ef678e7 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 20 Jul 2011 14:48:17 -0700 Subject: Moderators can now delete live posts. Accessing the moderate post page redirects to login if needed. --- htdocs/moderate/moderate.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'htdocs/moderate/moderate.php') diff --git a/htdocs/moderate/moderate.php b/htdocs/moderate/moderate.php index 29294ec..d24c5c6 100644 --- a/htdocs/moderate/moderate.php +++ b/htdocs/moderate/moderate.php @@ -34,9 +34,7 @@ if (isset($_GET['id']) and is_numeric($_GET['id'])) { break; case 'delete': - if ($_SESSION['currentUser']->isAdmin()) { - $post->delete(); - } + $post->delete(); break; } -- cgit v1.2.3