mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-01 01:09:20 -04:00
This patch adds some security to the organize dialog.
1) If images are dragged from the content pane and dropped on a branch in the tree that the user only has view priviledges, then the drop is cancelled and the images are reverted. 2) The user cannot click on a branch, to which they only have view priviledges, the content pane does not change to the new album
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>">
|
||||
<li class="gOrganizeBranch ui-icon-left <?= $can_edit ? "" : "gViewOnly" ?>" ref="<?= $album->id ?>">
|
||||
<div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>"
|
||||
class="<?= $selected ? "gBranchSelected" : "" ?>">
|
||||
<span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
|
||||
|
||||
Reference in New Issue
Block a user