Skip to content

Commit

Permalink
Merge pull request #3 from adaptdk/feature/t18973-select-booking-numb…
Browse files Browse the repository at this point in the history
…er-in-inquiry

add helper to get permission via auth()->user() helper
  • Loading branch information
TheLifeofO authored Dec 1, 2022
2 parents 8705dae + 72515a9 commit 8511b86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Models/Auth0User.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ public function getAccountNo()
return $this->company['navision_account_no'] ?? null;
}

/**
* Return the Can book with booking numbers permission
*
* @return boolean
*/
public function canBookWithBookingNumber(): bool
{
return $this->company['can_book_with_booking_numbers'] ?? false;
}

/**
* Set multiple properties
*
Expand Down

0 comments on commit 8511b86

Please sign in to comment.