|
@@ -71,4 +71,14 @@ class Ad extends Backend
|
|
|
return \app\common\model\Ad::$pos;
|
|
|
}
|
|
|
|
|
|
+ public function edit($ids = null)
|
|
|
+ {
|
|
|
+ if($this->admin('is_sub')){
|
|
|
+ $check=$this->model->where('id',$ids)->where('admin_id',$this->auth->id)->find();
|
|
|
+ if(!$check){
|
|
|
+ $this->error('无权操作');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return parent::edit($ids);
|
|
|
+ }
|
|
|
}
|