Skip to content

Commit 14fe9f2

Browse files
authored
fix(editor): Fix blank Public API page (#9409)
1 parent 68a6c81 commit 14fe9f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/editor-ui/src/components/SettingsSidebar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ export default defineComponent({
165165
return this.canUserAccessRouteByName(VIEWS.COMMUNITY_NODES);
166166
},
167167
canAccessApiSettings(): boolean {
168-
return this.canUserAccessRouteByName(VIEWS.API_SETTINGS);
168+
return (
169+
this.settingsStore.isPublicApiEnabled && this.canUserAccessRouteByName(VIEWS.API_SETTINGS)
170+
);
169171
},
170172
canAccessLdapSettings(): boolean {
171173
return this.canUserAccessRouteByName(VIEWS.LDAP_SETTINGS);

0 commit comments

Comments
 (0)