diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-17 19:52:40 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-17 19:52:40 -0700 |
| commit | 82edd2a37bde6f42f5ff69c1363c5dbeb3cec599 (patch) | |
| tree | 3a37d7bdd673a516aef21a104f1aff7e4baad3cf /modules/organize/views | |
| parent | 848c5439b3c17da58c2cfd94ccc62193a3fe7bd2 (diff) | |
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
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize_tree.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php index d2ef287a..823301fc 100644 --- a/modules/organize/views/organize_tree.html.php +++ b/modules/organize/views/organize_tree.html.php @@ -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 ?>" |
