mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
fix(editor): Fix blank Public API page (#9409)
This commit is contained in:
parent
68a6c81729
commit
14fe9f268f
|
@ -165,7 +165,9 @@ export default defineComponent({
|
|||
return this.canUserAccessRouteByName(VIEWS.COMMUNITY_NODES);
|
||||
},
|
||||
canAccessApiSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.API_SETTINGS);
|
||||
return (
|
||||
this.settingsStore.isPublicApiEnabled && this.canUserAccessRouteByName(VIEWS.API_SETTINGS)
|
||||
);
|
||||
},
|
||||
canAccessLdapSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.LDAP_SETTINGS);
|
||||
|
|
Loading…
Reference in a new issue