From 77048675abf5fad43e8b5371c35e1c86b3be59c2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2014 19:08:03 +0100 Subject: Privilege changes --- lib/blog/edcom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/blog/edcom.php') diff --git a/lib/blog/edcom.php b/lib/blog/edcom.php index 2b96ff9..ca8fd7e 100644 --- a/lib/blog/edcom.php +++ b/lib/blog/edcom.php @@ -9,7 +9,7 @@ $com = mysql_fetch_assoc(sql( "SELECT blog_comments.owner AS owner, blog_comments.text AS text, blog_comments.post AS post ". "FROM blog_comments WHERE id = $comid" )); -assert_error($com && $com['owner'] == $user['id'], +assert_error($com && ($com['owner'] == $user['id'] || $user['priv'] >= $priv_mod), "This comment does not exist, or you are not allowed to edit it."); $com_text = $com['text']; -- cgit v1.2.3