fix(skinlib): cast allow_downloading_texture to boolean

This commit is contained in:
Asnxthaony 2022-07-04 19:11:05 +08:00 committed by GitHub
parent fe7307d655
commit 1a7f76ea69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ class SkinlibController extends Controller
->with('texture', $texture)
->with('grid', $grid)
->with('extra', [
'download' => option('allow_downloading_texture'),
'download' => (bool) option('allow_downloading_texture'),
'currentUid' => $user ? $user->uid : 0,
'admin' => $user && $user->isAdmin(),
'inCloset' => $user && $user->closet()->where('tid', $texture->tid)->count() > 0,