Add flags verification

This commit is contained in:
orin committed 2023-11-09 20:29:25 +01:00
1 parent 0477fd5fa6
commit 4694c8dc00
3 files changed
+15 -4

No files matched your search

+9
View File
@@ -190,3 +190,12 @@ function uupApiConfigIsTrue($config) {
return $data[$config] == true;
}
function getAllowedFlags() {
$flags = ['thisonly'];
if(uupApiConfigIsTrue('allow_corpnet'))
$flags[] = 'corpnet';
return $flags;
}