1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 17:51:24 +02:00

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

View File

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