diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index e5cc2feee..bebcff2b6 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -183,6 +183,9 @@ UPDATE '.CATEGORIES_TABLE.'
$page['infos'][] = l10n('Photo informations updated');
pwg_activity('photo', $_GET['image_id'], 'edit');
+
+ // refresh page cache
+ $page['image'] = get_image_infos($_GET['image_id'], true);
}
// tags
@@ -379,6 +382,7 @@ while ($row = pwg_db_fetch_assoc($result))
// 3. if URL category not available or reachable, use the first reachable
// linked category
// 4. if no category reachable, no jumpto link
+// 5. if level is too high for current user, no jumpto link
$query = '
SELECT category_id
@@ -420,7 +424,7 @@ else
}
}
-if (isset($url_img))
+if (isset($url_img) and $user['level'] >= $page['image']['level'])
{
$template->assign( 'U_JUMPTO', $url_img );
}
diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl
index 2de5fb670..580bbc485 100644
--- a/admin/themes/default/template/picture_modify.tpl
+++ b/admin/themes/default/template/picture_modify.tpl
@@ -90,7 +90,7 @@ $('#action-delete-picture').on('click', function() {
{if isset($U_JUMPTO)}
{else}
-
+
{/if}
{if !url_is_remote($PATH)}