user card search fix 4
This commit is contained in:
parent
c5850bda46
commit
14e2025e73
@ -53,6 +53,7 @@ class UserCardSearch extends UserCard
|
|||||||
$manager = Manager::findOne(Yii::$app->user->id);
|
$manager = Manager::findOne(Yii::$app->user->id);
|
||||||
if (!$manager){
|
if (!$manager){
|
||||||
$query = UserCard::find()->where(['id' => 0]);
|
$query = UserCard::find()->where(['id' => 0]);
|
||||||
|
return new ActiveDataProvider(['query' => $query]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$employeeIdList = ManagerEmployee::find()
|
$employeeIdList = ManagerEmployee::find()
|
||||||
|
Loading…
Reference in New Issue
Block a user