@if(($supportsAdminUserOverride ?? false) === true)
@php
$currentPermissions = (array) old('permissions', $selectedPermissions);
$customerVisibleActions = array_values(array_filter(
$customerActions,
function (array $action) use ($customerModules, $customerSpecial): bool {
$actionKey = $action['key'] ?? null;
if (!is_string($actionKey) || trim($actionKey) === '') {
return false;
}
foreach ($customerModules as $module) {
if (data_get($module, 'perms.' . $actionKey)) {
return true;
}
}
foreach ($customerSpecial as $row) {
if (data_get($row, 'perms.' . $actionKey)) {
return true;
}
}
return false;
}
));
@endphp
@if(($supportsAdminPermissions ?? false) !== true)
Per-user admin permissions are not available because the users.admin_permissions column is missing.
Run migrations to enable this feature.
@endif