diff options
| author | Christian Fowler <spider@viovio.com> | 2008-04-17 21:18:57 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-04-17 21:18:57 +0000 |
| commit | 4c7d18b779fcb57b9fc17492c60c2cc93784b6e7 (patch) | |
| tree | 43ee47dd7e141a4ae32bb03400dce49d4c39cebf /view_post.php | |
| parent | 00b3a72d49e0d7ba5ba26a6daf97045d04fa73da (diff) | |
| download | blogs-4c7d18b779fcb57b9fc17492c60c2cc93784b6e7.tar.gz blogs-4c7d18b779fcb57b9fc17492c60c2cc93784b6e7.tar.bz2 blogs-4c7d18b779fcb57b9fc17492c60c2cc93784b6e7.zip | |
check gContent permissions, not gBitUser
Diffstat (limited to 'view_post.php')
| -rw-r--r-- | view_post.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view_post.php b/view_post.php index 09143e6..d4c19ab 100644 --- a/view_post.php +++ b/view_post.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/view_post.php,v 1.13 2008/03/29 16:02:05 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/view_post.php,v 1.14 2008/04/17 21:18:57 spiderr Exp $ * @package blogs * @subpackage functions @@ -31,7 +31,7 @@ $gContent->verifyViewPermission(); $now = $gBitSystem->getUTCTime(); $view = FALSE; -if ( $gBitUser->isAdmin() || ( $gBitUser->hasPermission( 'p_blog_posts_read_future' ) && $gBitUser->hasPermission( 'p_blog_posts_read_expired' ) ) ){ +if ( $gContent->hasAdminPermission() || ( $gContent->hasUserPermission( 'p_blog_posts_read_future' ) && $gContent->hasUserPermission( 'p_blog_posts_read_expired' ) ) ){ $view = TRUE; }elseif ( $gContent->mInfo['publish_date'] > $now && $gBitUser->hasPermission( 'p_blog_posts_read_future' ) ){ $view = TRUE; |
