Skip to content

Commit

Permalink
fix: assertAdmin sending wrong ability name to gate (#3501)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann authored Jul 4, 2022
1 parent bf4c543 commit bc1d6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/src/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public function assertCan($ability, $arguments = null)
*/
public function assertAdmin()
{
$this->assertCan($this, 'administrate');
$this->assertCan('administrate');
}

/**
Expand Down

0 comments on commit bc1d6f9

Please sign in to comment.