summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-08-28 21:21:21 +0000
committerwjames5 <will@tekimaki.com>2008-08-28 21:21:21 +0000
commiteacd7f30faaf8f3c0c5a629b5fda000153adc03e (patch)
tree10088e7516d2fbf73f7cbe0a377e9ddc59b12c56 /index.php
parent013e6d909c1092ff820d562fbf63f006ea1d0f34 (diff)
downloadusers-eacd7f30faaf8f3c0c5a629b5fda000153adc03e.tar.gz
users-eacd7f30faaf8f3c0c5a629b5fda000153adc03e.tar.bz2
users-eacd7f30faaf8f3c0c5a629b5fda000153adc03e.zip
respect feature setting and perms for access to user content list
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.php b/index.php
index 826dd86..3b78aae 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,8 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.32 2008/08/28 21:14:12 wjames5 Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.33 2008/08/28 21:21:21 wjames5 Exp $
*
- * $Id: index.php,v 1.32 2008/08/28 21:14:12 wjames5 Exp $
+ * $Id: index.php,v 1.33 2008/08/28 21:21:21 wjames5 Exp $
* @package users
* @subpackage functions
*/
@@ -54,7 +54,8 @@ if( !empty( $_REQUEST['home'] ) && $gQueryUser->isValid() && (( $gBitUser->hasPe
}
$browserTitle = $userHomeTitle;
- if( $gBitUser->hasPermission( 'p_liberty_list_content' ) ) {
+ if( ( $gBitSystem->isFeatureActive('display_users_content_list') && $gBitUser->hasPermission( 'p_liberty_list_content' ) ) ||
+ ( $gBitUser->hasPermission( 'p_users_admin' ) || $gQueryUser->mUserId == $gBitUser->mUserId ) ) {
// some content specific offsets and pagination settings
if( !empty( $_REQUEST['sort_mode'] ) ) {