diff options
| author | wjames5 <will@tekimaki.com> | 2008-08-28 21:21:21 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-08-28 21:21:21 +0000 |
| commit | eacd7f30faaf8f3c0c5a629b5fda000153adc03e (patch) | |
| tree | 10088e7516d2fbf73f7cbe0a377e9ddc59b12c56 /index.php | |
| parent | 013e6d909c1092ff820d562fbf63f006ea1d0f34 (diff) | |
| download | users-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.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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'] ) ) { |
