Skip to content

Commit

Permalink
No need for an access token when creating a Collector.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Feb 6, 2024
1 parent 47a26a2 commit daff3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/response_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function response_create($instance = null)
}

// If we're creating data (POST), we should have an access token (configuration depending)
if (!empty($response->meta->received_data)) {
if (!empty($response->meta->received_data) and !($response->meta->collection === 'collectors' and $response->meta->action === 'create')) {
$session = \Config\Services::session();
if ($response->meta->request_method === 'POST' && !empty($config->access_token_enable) && $config->access_token_enable === 'y') {
if (empty($response->meta->received_data->access_token)) {
Expand Down

0 comments on commit daff3e7

Please sign in to comment.