Code cleanup + Settings

This commit is contained in:
2020-06-26 01:47:43 +02:00
parent 1896351a9b
commit 6eb9bf333f
17 changed files with 397 additions and 396 deletions

View File

@@ -14,6 +14,7 @@ namespace Api\Settings {
use Api\Parameter\StringType;
use Api\SettingsAPI;
use Driver\SQL\Column\Column;
use Driver\SQL\Condition\Compare;
use Driver\SQL\Condition\CondLike;
use Driver\SQL\Condition\CondRegex;
use Driver\SQL\Strategy\UpdateStrategy;
@@ -44,6 +45,10 @@ namespace Api\Settings {
$query->where(new CondRegex($key, new Column("name")));
}
if ($this->isExternalCall()) {
$query->where(new Compare("name", "jwt_secret", "!="));
}
$res = $query->execute();
$this->success = ($res !== FALSE);