Skip to content

Commit

Permalink
Shared folder: unshare yourself (was broken again)
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Mar 14, 2023
1 parent d7dfd90 commit 4043a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website_code/php/folder_status.php
Expand Up @@ -386,5 +386,6 @@ function get_shared_folder_ancestor($folder_id, $is_parent_of_template = false)

function is_folder_shared_subfolder($folder_id)
{
return get_shared_folder_ancestor($folder_id) !== false;
$ancestor = get_shared_folder_ancestor($folder_id);
return ($ancestor !== false && $ancestor != $folder_id);
}

0 comments on commit 4043a6e

Please sign in to comment.