Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsteampassnet committed Sep 21, 2017
2 parents e4aff64 + 80cfdb0 commit 775e691
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Configuration variables are not set in SESSION anymore. Now read from tp.config.php file.
Fix: issue on offline export
Fix: error on deleting a folder at root
#1915 Cannot Edit or Delete items in the Personal folder
#1909 Roles Management - Problem with acess rights "Edit" "Delete"
#1903 SSH Password Change does not work
#1900 Forgot your password --> Page reload automatic
Expand Down
10 changes: 8 additions & 2 deletions items.load.php
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,10 @@ function open_edit_item_div(restricted_to_roles)
// is user read only and it is not a personal folder
if (
($('#recherche_group_pf').val() === "0" && $("#user_is_read_only").length && $("#user_is_read_only").val() === "1")
|| ($("#access_level").val() === "1" || $("#access_level").val() === "3")
|| (
($("#access_level").val() === "1" || $("#access_level").val() === "3")
&& $('#recherche_group_pf').val() === "0"
)
) {
// Exclude the case where the user is in his PF with PSK set
if ($('#recherche_group_pf').val() === "1" && $("#personal_sk_set").val() === "1") {
Expand Down Expand Up @@ -2083,7 +2086,10 @@ function open_del_item_div()
// is user read only
if (
($('#recherche_group_pf').val() === "0" && $("#user_is_read_only").length && $("#user_is_read_only").val() === "1")
|| ($("#access_level").val() === "1" || $("#access_level").val() === "2" || $("#access_level").val() === "3")
|| (
($("#access_level").val() === "1" || $("#access_level").val() === "2" || $("#access_level").val() === "3")
&& $('#recherche_group_pf').val() === "0"
)
) {
displayMessage("<i class='fa fa-warning'></i>&nbsp;<?php echo addslashes($LANG['error_not_allowed_to']); ?>");
return false;
Expand Down

0 comments on commit 775e691

Please sign in to comment.