mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
style: add brief comment to LOCATION impersonation block
This commit is contained in:
1 parent
d2fe065de8
commit
55d3af2f59
2 files changed
+2
No files matched your search
@@ -385,6 +385,7 @@ class OpenAPI3 extends Format
|
||||
|
||||
$temp['x-appwrite']['auth'] = array_slice($securities, 0, $this->authCount);
|
||||
|
||||
// Impersonation falls back to query params for location-type methods (browsers can't set headers on resource URLs)
|
||||
if ($sdk->getType() === MethodType::LOCATION) {
|
||||
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
|
||||
if (\array_key_exists($key, $this->keys)) {
|
||||
|
||||
@@ -375,6 +375,7 @@ class Swagger2 extends Format
|
||||
|
||||
$temp['x-appwrite']['auth'] = \array_slice($securities, 0, $this->authCount);
|
||||
|
||||
// Impersonation falls back to query params for location-type methods (browsers can't set headers on resource URLs)
|
||||
if ($sdk->getType() === MethodType::LOCATION) {
|
||||
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
|
||||
if (\array_key_exists($key, $this->keys)) {
|
||||
|
||||
Reference in new issue
Block a user