|
|
@@ -1282,9 +1282,9 @@ class Im extends BaseController
|
|
|
public function delMessage(){
|
|
|
$param = $this->request->param();
|
|
|
$id = $param['id'];
|
|
|
- if(!$this->globalConfig['chatInfo']['dbDelMsg']){
|
|
|
- return warning(lang('system.notAuth'));
|
|
|
- }
|
|
|
+ // if(!$this->globalConfig['chatInfo']['dbDelMsg']){
|
|
|
+ // return warning(lang('system.notAuth'));
|
|
|
+ // }
|
|
|
$message = Message::where(['id' => $id])->find();
|
|
|
if ($message) {
|
|
|
if($message['from_user']!=$this->userInfo['user_id']){
|