diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-17 10:45:18 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-17 10:45:18 -0700 |
commit | 4abea1ff10cc1376308ba590ee4e97091fc997e1 (patch) | |
tree | 4be8a013cccda8350d9367f843a41b4b69717971 /htdocs/moderate/moderate.php | |
parent | bd90538bb72812e2f770a2dbfe5357b96df08629 (diff) |
Added delete post. Fixed logout
Diffstat (limited to 'htdocs/moderate/moderate.php')
-rw-r--r-- | htdocs/moderate/moderate.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/htdocs/moderate/moderate.php b/htdocs/moderate/moderate.php index 0d3a67d..29294ec 100644 --- a/htdocs/moderate/moderate.php +++ b/htdocs/moderate/moderate.php @@ -32,6 +32,12 @@ if (isset($_GET['id']) and is_numeric($_GET['id'])) { case 'reject': $post->reject(); break; + + case 'delete': + if ($_SESSION['currentUser']->isAdmin()) { + $post->delete(); + } + break; } $post->save(); |