File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
157157 ->preload ()
158158 ->disabled (function () {
159159 // Only allow changes if user has library admin access (Admin role)
160- return !\Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
160+ return ! \Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
161161 })
162162 ->helperText ('Creator receives owner permissions ' ),
163163 ]);
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
148148 ->preload ()
149149 ->disabled (function () {
150150 // Only allow changes if user has library admin access (Admin role)
151- return !\Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
151+ return ! \Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
152152 })
153153 ->helperText ('Creator receives owner permissions ' ),
154154 ]);
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
152152 ->preload ()
153153 ->disabled (function () {
154154 // Only allow changes if user has library admin access (Admin role)
155- return !\Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
155+ return ! \Tapp \FilamentLibrary \FilamentLibraryPlugin::isLibraryAdmin (auth ()->user ());
156156 })
157157 ->helperText ('Creator receives owner permissions ' ),
158158 ]);
You can’t perform that action at this time.
0 commit comments