related to #1609 visit gallery button takes in account the privacy

This commit is contained in:
Matthieu Leproux
2022-04-06 12:45:33 +02:00
parent d5e3c08878
commit 847983bf00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -189,6 +189,7 @@ SELECT
$orderedCat['id'] = $cat['cat']['id'];
$orderedCat['nb_images'] = isset($nb_photos_in[$cat['cat']['id']]) ? $nb_photos_in[$cat['cat']['id']] : 0;
$orderedCat['last_updates'] = $cat['cat']['lastmodified'];
$orderedCat['has_access'] = cat_admin_access($cat['cat']['id']);
if (isset($cat['children']))
{
//Does not update when moving a node
+4
View File
@@ -96,6 +96,10 @@ $(document).ready(() => {
} else {
cont.find(".last-update").hide();
}
if (!node.has_access) {
cont.find(".move-cat-see").addClass("notClickable");
}
}
var url_split = window.location.href.split("#");