mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-04 07:09:59 +03:00
parent
06952b2d5a
commit
a1fc05c586
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ SELECT group_id, cat_id
|
||||||
// filter by group and user
|
// filter by group and user
|
||||||
foreach ($perms as $cat_id => &$cat)
|
foreach ($perms as $cat_id => &$cat)
|
||||||
{
|
{
|
||||||
if (isset($filters['group_id']))
|
if (isset($params['group_id']))
|
||||||
{
|
{
|
||||||
if (empty($cat['groups']) or count(array_intersect($cat['groups'], $params['group_id'])) == 0)
|
if (empty($cat['groups']) or count(array_intersect($cat['groups'], $params['group_id'])) == 0)
|
||||||
{
|
{
|
||||||
|
@ -109,7 +109,7 @@ SELECT group_id, cat_id
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($filters['user_id']))
|
if (isset($params['user_id']))
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
(empty($cat['users_indirect']) or count(array_intersect($cat['users_indirect'], $params['user_id'])) == 0)
|
(empty($cat['users_indirect']) or count(array_intersect($cat['users_indirect'], $params['user_id'])) == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue