summaryrefslogtreecommitdiff
path: root/htdocs/moderate/moderate.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-07-20 14:48:17 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-07-20 14:48:17 -0700
commit0927d9e681d4e0120b15dadd3893cba60ef678e7 (patch)
tree76107e4d848632dfd478770acfb65199b162ad0b /htdocs/moderate/moderate.php
parentfc919902e535646dd82fbf43caef5ac7be6aa0bb (diff)
Moderators can now delete live posts. Accessing the moderate post page redirects to login if needed.
Diffstat (limited to 'htdocs/moderate/moderate.php')
-rw-r--r--htdocs/moderate/moderate.php4
1 files changed, 1 insertions, 3 deletions
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;
}