[FIX] Disable API calls if not enabled
Merge pull request #2297 from MPOS/dashboard-global-api-disabled

[FIX] Disable API calls if not enabled