mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
fix: assertAdmin
sending wrong ability name to gate (#3501)
This commit is contained in:
parent
bf4c543692
commit
bc1d6f9e91
|
@ -650,7 +650,7 @@ class User extends AbstractModel
|
|||
*/
|
||||
public function assertAdmin()
|
||||
{
|
||||
$this->assertCan($this, 'administrate');
|
||||
$this->assertCan('administrate');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user