fix: assertAdmin sending wrong ability name to gate (#3501)

This commit is contained in:
Clark Winkelmann 2022-07-04 15:18:18 +02:00 committed by GitHub
parent bf4c543692
commit bc1d6f9e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -650,7 +650,7 @@ class User extends AbstractModel
*/
public function assertAdmin()
{
$this->assertCan($this, 'administrate');
$this->assertCan('administrate');
}
/**