summaryrefslogtreecommitdiff
path: root/content_permissions.php
diff options
context:
space:
mode:
authorTyler Bello <tylerbello@users.sourceforge.net>2009-10-20 19:50:35 +0000
committerTyler Bello <tylerbello@users.sourceforge.net>2009-10-20 19:50:35 +0000
commitdf9b08d60099c0cad4375451a4e75337d37490e0 (patch)
tree47ee49288789752866bf7c78da9db753468fcd54 /content_permissions.php
parent4a67acf6f01371e71bf2a03cf6ec62570759a6cf (diff)
downloadliberty-df9b08d60099c0cad4375451a4e75337d37490e0.tar.gz
liberty-df9b08d60099c0cad4375451a4e75337d37490e0.tar.bz2
liberty-df9b08d60099c0cad4375451a4e75337d37490e0.zip
content_permissions now only shows groups that you own or that are public
Diffstat (limited to 'content_permissions.php')
-rw-r--r--content_permissions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_permissions.php b/content_permissions.php
index ac26d99..590f154 100644
--- a/content_permissions.php
+++ b/content_permissions.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
* @package liberty
* @subpackage functions
*/
@@ -47,8 +47,8 @@ if( !empty( $_REQUEST['action'] ) && @BitBase::verifyId( $gContent->mContentId )
}
}
-// Get a list of groups
-$listHash = array( 'sort_mode' => 'group_id_asc' );
+// Get a list of groups owned by the user (and thus able to be administered by this user) OR public groups
+$listHash = array( 'sort_mode' => 'group_id_asc', 'visible' => 1);
$contentPerms['groups'] = $gBitUser->getAllGroups( $listHash );
if( !empty( $gContent->mType['handler_package'] )) {