Skip to content

Commit 8511b86

Browse files
authored
Merge pull request #3 from adaptdk/feature/t18973-select-booking-number-in-inquiry
add helper to get permission via auth()->user() helper
2 parents 8705dae + 72515a9 commit 8511b86

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Models/Auth0User.php

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ public function getAccountNo()
1717
return $this->company['navision_account_no'] ?? null;
1818
}
1919

20+
/**
21+
* Return the Can book with booking numbers permission
22+
*
23+
* @return boolean
24+
*/
25+
public function canBookWithBookingNumber(): bool
26+
{
27+
return $this->company['can_book_with_booking_numbers'] ?? false;
28+
}
29+
2030
/**
2131
* Set multiple properties
2232
*

0 commit comments

Comments
 (0)