Skip to content

Commit

Permalink
fixed: unable to delete folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 28, 2016
1 parent 575ff06 commit 7dd48c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/folder/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

$folder = get_entity($folder_guid);
if (!elgg_instanceof($folder, 'object', FILE_TOOLS_SUBTYPE) || $folder->canDelete()) {
if (!elgg_instanceof($folder, 'object', FILE_TOOLS_SUBTYPE) || !$folder->canDelete()) {
register_error(elgg_echo('actionunauthorized'));
forward(REFERER);
}
Expand Down

0 comments on commit 7dd48c4

Please sign in to comment.