AI智能回复搜索中,请稍后...
public function remove_question_action() { if (!$this->user_info['permission']['is_administortar'] AND !$this->user_info['permission']['is_moderator']) { H::ajax_json_output(AWS_APP::RSM(null, '-1', AWS_APP::lang()->_t('对不起, 你没有删除问题的权限'))); } if ($question_info = $this->model('question')->get_question_info_by_id($_POST['question_id'])) { if ($this->user_id != $question_info['published_uid']) { $this->model('account')->send_delete_message($question_info['published_uid'], $question_info['question_content'], $question_info['question_detail']); } $this->model('question')->remove_question($question_info['question_id']); } H::ajax_json_output(AWS_APP::RSM(array( 'url' => get_js_url('/home/explore/') ), 1, null)); }—— 从代码看只有管理员和版主有删除问题的权限。