mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(editor): Only load suggested templates for owners (#8228)
## Summary Title is self explanatory
This commit is contained in:
parent
270328ccf6
commit
8f22a265d6
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue