summaryrefslogtreecommitdiff
path: root/templates/center_list_blog_posts.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-11-13 04:29:20 +0000
committerwjames5 <will@tekimaki.com>2007-11-13 04:29:20 +0000
commit65eeb762d6b59a24e78f0d606977f2223745a4bf (patch)
treefded5e0abacc7ddd63bcbf86881b0071ca1463ab /templates/center_list_blog_posts.php
parentad9de78c326eb88725da6592bb67234d595a7ed3 (diff)
downloadblogs-65eeb762d6b59a24e78f0d606977f2223745a4bf.tar.gz
blogs-65eeb762d6b59a24e78f0d606977f2223745a4bf.tar.bz2
blogs-65eeb762d6b59a24e78f0d606977f2223745a4bf.zip
limit access to blog posts in lists by custom permissions
Diffstat (limited to 'templates/center_list_blog_posts.php')
-rw-r--r--templates/center_list_blog_posts.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php
index 32c88dc..03d0cd8 100644
--- a/templates/center_list_blog_posts.php
+++ b/templates/center_list_blog_posts.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.23 2007/11/03 22:50:35 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.24 2007/11/13 04:29:20 wjames5 Exp $
* @package bitweaver
*/
global $gBitSmarty, $gBlog, $gBitSystem, $gQueryUserId, $moduleParams;
@@ -67,6 +67,11 @@ if( @BitBase::verifyId( $_REQUEST['group_id'] ) ) {
$listHash['group_id'] = $_REQUEST['group_id'];
}
+if( !$gBitUser->hasPermission( 'p_blogs_admin' )) {
+// $listHash['user_id'] = $gBitUser->mUserId;
+ $listHash['content_perm_name'] = 'p_blogs_view';
+}
+
/* I think this is right - usually we pass in $_REQUEST
* but in this case I pass in the listHash because
* this is in a module - change it if its a mistake wjames5