Skip to content

Commit

Permalink
Don't limit access to route civiremote_entity.remote_page_get
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Aug 9, 2024
1 parent 4798ef8 commit 0bc6709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/civiremote_entity/civiremote_entity.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ civiremote_entity.remote_page_get:
filename:
type: string
requirements:
_user_is_logged_in: 'TRUE'
_access: 'TRUE'
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ public function request(string $method, string $uri, array $options = []): Respo
}

/**
* @phpstan-return array<string, string|null>
* @phpstan-return array<string, string>
*/
private function buildHeaders(): array {
return [
'X-Civi-Auth' => 'Bearer ' . $this->apiKey,
'X-Civi-Key' => $this->siteKey,
'X-Civi-Remote-Contact-Id' => $this->remoteContactIdProvider->hasRemoteContactId()
? $this->remoteContactIdProvider->getRemoteContactId() : '',
'X-Civi-Remote-Contact-Id' => $this->remoteContactIdProvider->getRemoteContactIdOrNull() ?? '',
];
}

Expand Down

0 comments on commit 0bc6709

Please sign in to comment.