You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -33,16 +33,18 @@ if (! function_exists('isDarkColor')) {
|
||||
}
|
||||
|
||||
if (! function_exists('hasPermission')) {
|
||||
function hasPermission(string $permission): string
|
||||
function hasPermission(string $permission): bool
|
||||
{
|
||||
return app(PermissionsService::class)->getOrDefault($permission);
|
||||
$value = app(PermissionsService::class)->getOrDefault($permission);
|
||||
return $value === true || $value === 1 || $value === '1';
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('hasHousekeepingPermission')) {
|
||||
function hasHousekeepingPermission(string $permission): string
|
||||
function hasHousekeepingPermission(string $permission): bool
|
||||
{
|
||||
return app(HousekeepingPermissionsService::class)->getOrDefault($permission);
|
||||
$value = app(HousekeepingPermissionsService::class)->getOrDefault($permission);
|
||||
return $value === true || $value === 1 || $value === '1';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user