mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
style: remove comment from LOCATION impersonation block
This commit is contained in:
1 parent
9aef57f359
commit
d2fe065de8
1 file changed
-4
@@ -375,10 +375,6 @@ class Swagger2 extends Format
|
||||
|
||||
$temp['x-appwrite']['auth'] = \array_slice($securities, 0, $this->authCount);
|
||||
|
||||
// For location-type methods, embed all impersonation keys in both x-appwrite.auth
|
||||
// and the standard Swagger security array so the SDK appends the corresponding
|
||||
// query params to generated URLs. Browsers cannot carry custom headers on resource
|
||||
// requests (img src, href), so impersonation must fall back to query params.
|
||||
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