fix: hideServer & hideClient

This commit is contained in:
loks0n committed 2024-02-24 13:42:33 +00:00
1 parent 6cc1235e86
commit 42e9865dff
5 files changed
+10 -6

No files matched your search

+6 -2
View File
@@ -190,8 +190,12 @@ class Specs extends Action
}
if (empty($routeSecurity)) {
$sdkPlaforms[] = APP_PLATFORM_CLIENT;
$sdkPlaforms[] = APP_PLATFORM_SERVER;
if (!$route->getLabel('sdk.hideServer', false)) {
$sdkPlatforms[] = APP_PLATFORM_SERVER;
}
if (!$route->getLabel('sdk.hideClient', false)) {
$sdkPlatforms[] = APP_PLATFORM_CLIENT;
}
}
if (!$route->getLabel('docs', true)) {