Skip to content

Commit

Permalink
Merge pull request #52 from wonder-game/develop
Browse files Browse the repository at this point in the history
加入operinfo后置事件
  • Loading branch information
Joyboo authored Sep 13, 2023
2 parents 4d8bbd0 + 81963c7 commit bf00e8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/HttpController/Admin/AuthTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,18 @@ protected function checkAuthorization()
$this->operinfo = $data->toArray();
$this->operinfo['role'] = $relation;

$this->operinfoAfter();

// 将管理员信息挂载到Request
CtxRequest::getInstance()->withOperinfo($this->operinfo);
return $this->checkAuth();
}

protected function operinfoAfter()
{

}

/**
* 权限
* @return bool
Expand Down

0 comments on commit bf00e8f

Please sign in to comment.