Skip to content

Commit 66b01e4

Browse files
scott graysonscott grayson
authored andcommitted
Merge branch 'feature/permissions' of https://github.com/TappNetwork/Filament-Library into feature/permissions
2 parents 3c6bcde + 692e074 commit 66b01e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/FilamentLibraryPlugin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getId(): string
1818
/**
1919
* Set a custom callback to determine if a user is a library admin.
2020
*
21-
* @param callable $callback Function that receives a user and returns bool
21+
* @param callable $callback Function that receives a user and returns bool
2222
*/
2323
public static function setLibraryAdminCallback(callable $callback): void
2424
{
@@ -28,12 +28,11 @@ public static function setLibraryAdminCallback(callable $callback): void
2828
/**
2929
* Check if a user is a library admin.
3030
*
31-
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
32-
* @return bool
31+
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
3332
*/
3433
public static function isLibraryAdmin($user): bool
3534
{
36-
if (!$user) {
35+
if (! $user) {
3736
return false;
3837
}
3938

0 commit comments

Comments
 (0)