mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
related to #1609 visit gallery button takes in account the privacy
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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("#");
|
||||
|
||||
Reference in New Issue
Block a user