Code cleanup + Settings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user