This commit is contained in:
fbsanchez 2020-09-18 11:47:50 +02:00
parent f8152d5ee5
commit 696b58544c
2 changed files with 16 additions and 5 deletions

View File

@ -929,9 +929,9 @@ function events_get_all(
} }
if (!$user_is_admin) { if (!$user_is_admin) {
$ER_groups = users_get_groups($config['id_user'], 'ER', false); $ER_groups = users_get_groups($config['id_user'], 'ER', true);
$EM_groups = users_get_groups($config['id_user'], 'EM', false, true); $EM_groups = users_get_groups($config['id_user'], 'EM', true, true);
$EW_groups = users_get_groups($config['id_user'], 'EW', false, true); $EW_groups = users_get_groups($config['id_user'], 'EW', true, true);
} }
if (!$user_is_admin && !users_can_manage_group_all('ER')) { if (!$user_is_admin && !users_can_manage_group_all('ER')) {
@ -1412,6 +1412,8 @@ function events_get_all(
); );
} }
error_log(obhd($can_manage));
$can_write = '0 as user_can_write'; $can_write = '0 as user_can_write';
if (!empty($EW_groups)) { if (!empty($EW_groups)) {
$can_write = sprintf( $can_write = sprintf(

View File

@ -470,8 +470,17 @@ $tags_select_with = [];
$tags_select_without = []; $tags_select_without = [];
$tag_with_temp = []; $tag_with_temp = [];
$tag_without_temp = []; $tag_without_temp = [];
$tag_with = json_decode(base64_decode($tag_with), true);
$tag_without = json_decode(base64_decode($tag_without), true); $tags_select_without = [];
$tag_with_temp = [];
$tag_without_temp = [];
if (is_array($tag_with) === false) {
$tag_with = json_decode(base64_decode($tag_with), true);
}
if (is_array($tag_without) === false) {
$tag_without = json_decode(base64_decode($tag_without), true);
}
foreach ($tags as $id_tag => $tag) { foreach ($tags as $id_tag => $tag) {