hasAuth()
hasAuth(integer $userId, string $node) : boolean
获取某用户是否有某节点的权限
Parameters
integer |
$userId |
登录用户ID |
string |
$node |
节点字符串 |
Throws
- \think\db\exception\DataNotFoundException
- \think\db\exception\DbException
- \think\db\exception\ModelNotFoundException
Returns
boolean