Hubs-Foundation / hubs-cloud

Resources for self hosted Hubs Cloud instances
Mozilla Public License 2.0
149 stars 89 forks source link

The tokens page is displayed as empty when "Public API Access" is disabled #265

Open cornelionce opened 2 years ago

cornelionce commented 2 years ago

[Affected Versions]:

[Affected Platforms]:

[Prerequisites]:

[Steps to reproduce]:

  1. From the admin page go to App Settings -> Features.
  2. Make sure that the "Public API Access" is disabled.
  3. Try to open the tokens page.

[Expected results]:

[Actual results]:

[Notes]:

conath commented 2 years ago

This is an issue in the client as well, the code reads:

<TokenPageLayout>{configs.feature("public_api_access") && <TokensContainer />}</TokenPageLayout>

It would appear that the tokens page is not supposed to work if public API access is disabled.