diff options
| author | Christian Fowler <spider@viovio.com> | 2009-10-29 18:01:48 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-10-29 18:01:48 +0000 |
| commit | 3dbc36f7b26870f88cf4159e3ad07e0ac74729a7 (patch) | |
| tree | f7418ab333e47d46621db779ebba8f19b3a52d7c | |
| parent | 4fd2aa1248f1a18b3f09db662d6b7acd19c0305a (diff) | |
| download | liberty-3dbc36f7b26870f88cf4159e3ad07e0ac74729a7.tar.gz liberty-3dbc36f7b26870f88cf4159e3ad07e0ac74729a7.tar.bz2 liberty-3dbc36f7b26870f88cf4159e3ad07e0ac74729a7.zip | |
add isAdmin check in 'visible' flag for getAllGroups to make sure admins can see all groups
| -rw-r--r-- | content_permissions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_permissions.php b/content_permissions.php index a8a0999..029b85e 100644 --- a/content_permissions.php +++ b/content_permissions.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ * @package liberty * @subpackage functions */ @@ -48,7 +48,7 @@ if( !empty( $_REQUEST['action'] ) && @BitBase::verifyId( $gContent->mContentId ) } // Get a list of groups -$listHash = array( 'sort_mode' => 'group_id_asc' ); +$listHash = array( 'sort_mode' => 'group_id_asc', 'visible' => 1 ); $contentPerms['groups'] = $gBitUser->getAllGroups( $listHash ); if( !empty( $gContent->mType['handler_package'] )) { |
