A lot of things.
This commit is contained in:
@@ -4,9 +4,12 @@ namespace App\Auth;
|
||||
|
||||
use App\Services\XenforoService;
|
||||
use App\XenForoDataTypes\XenForoData;
|
||||
use Illuminate\Contracts\Auth\Access\Authorizable;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
|
||||
class XenForoUser extends XenForoData implements Authenticatable {
|
||||
class XenForoUser extends XenForoData implements Authenticatable, Authorizable {
|
||||
|
||||
use \Illuminate\Foundation\Auth\Access\Authorizable;
|
||||
|
||||
public ?array $permissions = null;
|
||||
public function getAuthIdentifierName(): string
|
||||
@@ -64,7 +67,7 @@ class XenForoUser extends XenForoData implements Authenticatable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function can(string $permissionGroup, string $permissionName): bool
|
||||
public function _can(string $permissionGroup, string $permissionName): bool
|
||||
{
|
||||
if( !$this->permissions ){
|
||||
$this->permissions = $this->services->getPermissions($this->data->user_id, $this->data->permission_combination_id);
|
||||
|
||||
Reference in New Issue
Block a user