mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
feature:2418
adding an option to apply permission of group to sub-albums git-svn-id: http://piwigo.org/svn/trunk@12017 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+3
-1
@@ -88,10 +88,12 @@ else if (isset($_POST['grant_groups_submit'])
|
||||
and isset($_POST['grant_groups'])
|
||||
and count($_POST['grant_groups']) > 0)
|
||||
{
|
||||
$cat_ids = (isset($_POST['apply_on_sub'])) ? implode(',', get_subcat_ids(array($page['cat']))).",".implode(',', get_uppercat_ids(array($page['cat']))) : implode(',', get_uppercat_ids(array($page['cat'])));
|
||||
|
||||
$query = '
|
||||
SELECT id
|
||||
FROM '.CATEGORIES_TABLE.'
|
||||
WHERE id IN ('.implode(',', get_uppercat_ids(array($page['cat']))).')
|
||||
WHERE id IN ('.$cat_ids.')
|
||||
AND status = \'private\'
|
||||
;';
|
||||
$private_uppercats = array_from_query($query, 'id');
|
||||
|
||||
Reference in New Issue
Block a user