mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Add strict checks for value of secret
This commit is contained in:
parent
ac8a29f047
commit
7ce0e3c38c
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class Update extends Base
|
|||
throw new Exception(Exception::VARIABLE_NOT_FOUND);
|
||||
}
|
||||
|
||||
if ($variable->getAttribute('secret') && !$secret) {
|
||||
if ($variable->getAttribute('secret') === true && $secret === false) {
|
||||
throw new Exception(Exception::VARIABLE_CANNOT_UNSET_SECRET);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue