Added boolean has_eula to categories

This commit is contained in:
snipe 2020-09-11 16:05:42 -07:00
parent 0f22cf6807
commit 514e7ca072
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -28,6 +28,7 @@ class CategoriesTransformer
'name' => e($category->name),
'image' => ($category->image) ? Storage::disk('public')->url('categories/'.e($category->image)) : null,
'category_type' => ucwords(e($category->category_type)),
'has_eula' => ($category->getEula() ? true : false),
'eula' => ($category->getEula()),
'checkin_email' => ($category->checkin_email =='1'),
'require_acceptance' => ($category->require_acceptance == '1'),