解决任何用户可编辑文章的问题,修改成发布者和管理员可修改
文件:dzz/news/edit.php
在代码include template('news_edit');
前一行插入代码
if($perm>1 || $news['authorid']==$_G['uid']|| $_GET['catid']=='0') {
}else{
showmessage(lang('该文章不存在或您没有权限编辑'));
}
文件:dzz/news/edit.php
在代码include template('news_edit');
前一行插入代码
if($perm>1 || $news['authorid']==$_G['uid']|| $_GET['catid']=='0') {
}else{
showmessage(lang('该文章不存在或您没有权限编辑'));
}