chore: format
This commit is contained in:
1 parent
8c9f267ad2
commit
37eba1c5a6
79 files changed
+1272
-207
No files matched your search
@@ -165,7 +165,10 @@
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
if (!$config?.features?.enable_automations || ($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false))) {
|
||||
if (
|
||||
!$config?.features?.enable_automations ||
|
||||
($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false))
|
||||
) {
|
||||
goto('/');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,10 @@
|
||||
$: automationId = $page.params.id;
|
||||
|
||||
onMount(async () => {
|
||||
if (!$config?.features?.enable_automations || ($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false))) {
|
||||
if (
|
||||
!$config?.features?.enable_automations ||
|
||||
($user?.role !== 'admin' && !($user?.permissions?.features?.automations ?? false))
|
||||
) {
|
||||
goto('/');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user