Commit 0dd279c8 authored by hujun's avatar hujun

盘方编辑VIP盘

parent 3c3956c3
......@@ -468,13 +468,6 @@ class Houses extends Basic
//盘方对自己的商铺有编辑权限
if (in_array($v['id'], $house_id_arr)) {
$list[$k]['auth_edit_house'] = 1;
} else {
if ($v['is_vip']) {
$is_check = $check_auth->checkRule($this->userId, 'index/vipHouse');
if ($is_check) {
$list[$k]['auth_edit_house'] = 1;
}
}
}
//独家方
......
......@@ -89,7 +89,7 @@
[% } %]
[% if(it[item]["is_vip"] == 1) { %]
[% if (check_auth('index/vipHouse')) { %]
[% if (check_auth('index/vipHouse') || it[item]['auth_edit_house']) { %]
<a class="btn1 btn-success" href="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" >编辑</a>
[% } %]
[% }else{ %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment