Skip to content

Commit b23f4a1

Browse files
committed
fixes file access policy
1 parent 5a691ae commit b23f4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Policies/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function access(User $user, Model $file)
2121
{
2222
return $file->is_public
2323
|| $this->ownsFile($user, $file)
24-
|| new $file->type->isPublic();
24+
|| $file->type->isPublic();
2525
}
2626

2727
public function manage(User $user, Model $file)

0 commit comments

Comments
 (0)