Skip to content

Commit e9cf862

Browse files
committed
fix
1 parent ade0442 commit e9cf862

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Policies/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ class File
1212

1313
public function before(User $user)
1414
{
15-
return $user->isSuperior();
15+
if ($user->isSuperior()) {
16+
return true;
17+
}
1618
}
1719

1820
public function access(User $user, Model $file)

0 commit comments

Comments
 (0)