chore: format
This commit is contained in:
1 parent
53583f8d83
commit
c8ef5a4f38
92 files changed
+3573
-692
No files matched your search
@@ -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