Skip to content

Commit

Permalink
Merge pull request #2991 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix validation issue in FileManager related to Browse permissions
  • Loading branch information
sbwalker authored Jul 10, 2023
2 parents f213abd + 2ccb814 commit 0b81f28
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Oqtane.Client/Modules/Controls/FileManager.razor
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,14 @@
if (folder != null)
{
_haseditpermission = UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, folder.PermissionList);
_files = await FileService.GetFilesAsync(FolderId);
if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.Browse, folder.PermissionList))
{
_files = await FileService.GetFilesAsync(FolderId);
}
else
{
_files = new List<File>();
}
}
else
{
Expand Down

0 comments on commit 0b81f28

Please sign in to comment.