mirror of https://gitee.com/karson/fastadmin.git
修复后台Auth的check方法指定uid不生效的BUG
parent
3157f3a574
commit
515f4f78b1
|
|
@ -137,7 +137,8 @@ class Auth extends \fast\Auth
|
|||
|
||||
public function check($name, $uid = '', $relation = 'or', $mode = 'url')
|
||||
{
|
||||
return parent::check($name, $this->id, $relation, $mode);
|
||||
$uid = $uid ? $uid : $this->id;
|
||||
return parent::check($name, $uid, $relation, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue