From 8f22a265d607047eff22ba957d627bbec7da7900 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 4 Jan 2024 10:19:25 -0500 Subject: [PATCH] fix(editor): Only load suggested templates for owners (#8228) ## Summary Title is self explanatory --- packages/editor-ui/src/stores/cloudPlan.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/stores/cloudPlan.store.ts b/packages/editor-ui/src/stores/cloudPlan.store.ts index 3d219f686..a17f6db03 100644 --- a/packages/editor-ui/src/stores/cloudPlan.store.ts +++ b/packages/editor-ui/src/stores/cloudPlan.store.ts @@ -198,7 +198,7 @@ export const useCloudPlanStore = defineStore(STORES.CLOUD_PLAN, () => { const localStorageFlag = localStorage.getItem(SUGGESTED_TEMPLATES_FLAG); // Don't show if users already opted in - if (localStorageFlag !== 'false') { + if (localStorageFlag !== 'false' && hasPermission(['instanceOwner'])) { await loadSuggestedTemplates(); }