Skip to content
Snippets Groups Projects
Commit 0a45ff76 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

Revert "Biest #465"

This reverts commit b940d493.

Fixes #646
parent 1f1526fa
Branches
No related tags found
No related merge requests found
...@@ -38,11 +38,6 @@ class Authority ...@@ -38,11 +38,6 @@ class Authority
return $folder->isReadable($user->id); return $folder->isReadable($user->id);
} }
public static function canShowFolderFileRefs(User $user, \FolderType $folder)
{
return self::canShowFolder($user, $folder) || $folder->download_allowed;
}
public static function canUpdateFolder(User $user, \FolderType $folder) public static function canUpdateFolder(User $user, \FolderType $folder)
{ {
return $folder->isEditable($user->id); return $folder->isEditable($user->id);
......
...@@ -24,7 +24,7 @@ class SubfilerefsIndex extends JsonApiController ...@@ -24,7 +24,7 @@ class SubfilerefsIndex extends JsonApiController
throw new RecordNotFoundException(); throw new RecordNotFoundException();
} }
if (!Authority::canShowFolderFileRefs($this->getUser($request), $folder)) { if (!Authority::canShowFolder($this->getUser($request), $folder)) {
throw new AuthorizationFailedException(); throw new AuthorizationFailedException();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment