Skip to content

Commit

Permalink
Merge pull request #16330 from mvdbeek/fix_folder_access_anonymous_user
Browse files Browse the repository at this point in the history
[23.0] Fix folder access for anonymous user
  • Loading branch information
mvdbeek committed Jun 28, 2023
2 parents 1d4460a + 6a2b095 commit 96bc25e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _serialize_library_dataset(
type=FILE_TYPE_NAME,
create_time=library_dataset.create_time.isoformat(),
update_time=ldda.update_time.isoformat(),
can_manage=is_admin or (trans.user and security_agent.can_manage_dataset(current_user_roles, dataset)),
can_manage=is_admin or bool(trans.user and security_agent.can_manage_dataset(current_user_roles, dataset)),
deleted=library_dataset.deleted,
file_ext=library_dataset_dict["file_ext"],
date_uploaded=library_dataset_dict["date_uploaded"],
Expand Down

0 comments on commit 96bc25e

Please sign in to comment.