diff options
| author | wjames5 <will@tekimaki.com> | 2007-09-07 20:36:25 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-09-07 20:36:25 +0000 |
| commit | 021c313f75341f4a3e4215085a62f4e1a0b9a9e3 (patch) | |
| tree | a2bda4a00a95f36ecfc0408c33d1bcea980634f3 /post.php | |
| parent | f26228fd84200741476f6cc05fb18d45d584bf96 (diff) | |
| download | blogs-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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!" )); } } |
