fix #3046 - user folders displayed in folder lists
This commit is contained in:
parent
6736570ee7
commit
805018286c
|
@ -43,7 +43,8 @@ namespace Oqtane.Controllers
|
|||
{
|
||||
foreach (Folder folder in _folders.GetFolders(SiteId))
|
||||
{
|
||||
if (_userPermissions.IsAuthorized(User, PermissionNames.View, folder.PermissionList))
|
||||
// note that Browse permission is used for this method
|
||||
if (_userPermissions.IsAuthorized(User, PermissionNames.Browse, folder.PermissionList))
|
||||
{
|
||||
folders.Add(folder);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user