Skip to content

Commit

Permalink
fix(editor): Fix blank Public API page (#9409)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 15, 2024
1 parent 68a6c81 commit 14fe9f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor-ui/src/components/SettingsSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 14fe9f2

Please sign in to comment.