summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-09-07 20:36:25 +0000
committerwjames5 <will@tekimaki.com>2007-09-07 20:36:25 +0000
commit021c313f75341f4a3e4215085a62f4e1a0b9a9e3 (patch)
treea2bda4a00a95f36ecfc0408c33d1bcea980634f3 /post.php
parentf26228fd84200741476f6cc05fb18d45d584bf96 (diff)
downloadblogs-021c313f75341f4a3e4215085a62f4e1a0b9a9e3.tar.gz
blogs-021c313f75341f4a3e4215085a62f4e1a0b9a9e3.tar.bz2
blogs-021c313f75341f4a3e4215085a62f4e1a0b9a9e3.zip
woops - perms check needs to be add not or
Diffstat (limited to 'post.php')
-rw-r--r--post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/post.php b/post.php
index 7c16a28..8c08faf 100644
--- a/post.php
+++ b/post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.45 2007/09/07 20:32:56 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.46 2007/09/07 20:36:25 wjames5 Exp $
* @package blogs
* @subpackage functions
@@ -24,7 +24,7 @@ $gBlog = new BitBlog();
//must be owner or admin to edit an existing post
if (!empty($_REQUEST['post_id']) || !empty($_REQUEST['content_id'])) {
- if ( !$gContent->isOwner() || !$gBitUser->hasPermission( 'p_blogs_admin' ) ){
+ if ( !$gContent->isOwner() && !$gBitUser->hasPermission( 'p_blogs_admin' ) ){
$gBitSystem->fatalError( tra( "You do not have permission to edit this post!" ));
}
}