Skip to content

Commit f9a7036

Browse files
authored
Merge pull request #349 from dragonfire1119/master
Update LaratrustUserChecker
2 parents 600aa87 + 89dfe69 commit f9a7036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Checkers/User/LaratrustUserChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function currentUserHasAbility($roles, $permissions, $team = null, $optio
4343
$options = Helper::checkOrSet('return_type', $options, ['boolean', 'array', 'both']);
4444

4545
if ($options['return_type'] == 'boolean') {
46-
$hasRoles = $this->currentUserHasRole($roles, $options['validate_all']);
47-
$hasPermissions = $this->currentUserHasPermission($permissions, $options['validate_all']);
46+
$hasRoles = $this->currentUserHasRole($roles, $team, $options['validate_all']);
47+
$hasPermissions = $this->currentUserHasPermission($permissions, $team, $options['validate_all']);
4848

4949
return $options['validate_all']
5050
? $hasRoles && $hasPermissions

0 commit comments

Comments
 (0)