mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
fix(editor): Fix blank Public API page (#9409)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user