summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-04-04 17:03:43 +0000
committerwjames5 <will@tekimaki.com>2007-04-04 17:03:43 +0000
commit1e85bbf1e4a0c399827db077701eaa7ea21984a8 (patch)
treeff5385468951496d2a18824420066c7ca71cc393 /edit.php
parentca15c9da243f2e6382409c92c663be5840a288e7 (diff)
downloadblogs-1e85bbf1e4a0c399827db077701eaa7ea21984a8.tar.gz
blogs-1e85bbf1e4a0c399827db077701eaa7ea21984a8.tar.bz2
blogs-1e85bbf1e4a0c399827db077701eaa7ea21984a8.zip
spiderr commit: updates for content permission checking
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.php b/edit.php
index febf20f..18658c5 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.24 2007/03/31 13:01:09 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.25 2007/04/04 17:03:43 wjames5 Exp $
* @package blogs
* @subpackage functions
*/
@@ -50,7 +50,7 @@ if( $gContent->isValid() ) {
// Now check permissions to access this page
-if (!$gBitUser->hasPermission( 'p_blogs_create' ) && ($gBitUser->mUserId != $data['user_id'] || !$gBitUser->mUserId) ) {
+if( !$gContent->hasUserPermission( 'p_blogs_create' ) ) {
$gBitSystem->fatalPermission('p_blog_create');
}