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 authored and netroy committed May 16, 2024
1 parent 5633eec commit d090a7a
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 d090a7a

Please sign in to comment.