Skip to content

Commit

Permalink
Merge pull request #92 from fleetbase/dev-v1.4.22
Browse files Browse the repository at this point in the history
v1.4.22
  • Loading branch information
roncodes authored May 4, 2024
2 parents e8e7658 + 6874e3a commit 96c766b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fleetbase/core-api",
"version": "1.4.21",
"version": "1.4.22",
"description": "Core Framework and Resources for Fleetbase API",
"keywords": [
"fleetbase",
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Requests/OnboardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class OnboardRequest extends FleetbaseRequest
*
* @return array
*/
protected $excludedWords = ['test', 'example', 'trial', 'asdf', '1234', 'asdas'];
protected $excludedWords = ['test', 'testing', 'example', 'trial', 'trialing', 'asdf', '1234', 'asdas', 'dsdsds'];

/**
* Determine if the user is authorized to make this request.
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Resources/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public function toArray($request)
return [
'id' => $this->when(Http::isInternalRequest(), $this->id, $this->public_id),
'uuid' => $this->when(Http::isInternalRequest(), $this->uuid),
'company_uuid' => $this->when(Http::isInternalRequest(), $this->company_uuid),
'public_id' => $this->when(Http::isInternalRequest(), $this->public_id),
'company' => $this->when(Http::isPublicRequest(), $this->company->public_id),
'name' => $this->name,
'username' => $this->username,
'email' => $this->email,
Expand Down

0 comments on commit 96c766b

Please sign in to comment.