Skip to content

Commit

Permalink
Merge pull request #65 from tipoff/omnia/feature/64-Update-User-Permi…
Browse files Browse the repository at this point in the history
…ssions

update nova resource
  • Loading branch information
drewroberts authored Apr 24, 2021
2 parents c49f46d + f09e69d commit 746d7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
],
"require": {
"php": "^7.4|^8.0",
"tipoff/authorization": "^2.8.0",
"tipoff/locations": "^2.10.1",
"tipoff/support": "^2.0.2"
"tipoff/authorization": "^2.8.6",
"tipoff/locations": "^2.12.0",
"tipoff/support": "^2.1.5"
},
"require-dev": {
"tipoff/test-support": "^2.0.0"
"tipoff/test-support": "^2.0.1"
},
"autoload": {
"psr-4": {
Expand Down
9 changes: 1 addition & 8 deletions src/Nova/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ class Payment extends BaseResource

public static function indexQuery(NovaRequest $request, $query)
{
if ($request->user()->hasRole([
'Admin',
'Owner',
'Accountant',
'Executive',
'Reservation Manager',
'Reservationist',
])) {
if ($request->user()->hasPermissionTo('all locations')) {
return $query;
}

Expand Down

0 comments on commit 746d7f7

Please sign in to comment.