diff options
| author | wjames5 <will@tekimaki.com> | 2007-04-04 17:03:43 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-04-04 17:03:43 +0000 |
| commit | 1e85bbf1e4a0c399827db077701eaa7ea21984a8 (patch) | |
| tree | ff5385468951496d2a18824420066c7ca71cc393 /edit.php | |
| parent | ca15c9da243f2e6382409c92c663be5840a288e7 (diff) | |
| download | blogs-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'); } |
