chore: format
This commit is contained in:
@@ -165,10 +165,7 @@
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
if (
|
||||
$user?.role !== 'admin' &&
|
||||
!($user?.permissions?.features?.automations ?? false)
|
||||
) {
|
||||
if ($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false)) {
|
||||
goto('/');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -18,10 +18,7 @@
|
||||
$: automationId = $page.params.id;
|
||||
|
||||
onMount(async () => {
|
||||
if (
|
||||
$user?.role !== 'admin' &&
|
||||
!($user?.permissions?.features?.automations ?? false)
|
||||
) {
|
||||
if ($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false)) {
|
||||
goto('/');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user