修复 文章附件权限判断

This commit is contained in:
Comsenz 2018-01-11 10:15:30 +08:00
parent a518a2927b
commit 60405cd703
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if(empty($attach)) {
}
if($operation == 'delete') {
if(!$_G['group']['allowmanagearticle'] && $_G['uid'] != $attach['uid']) {
if(!$_G['group']['allowmanagearticle'] && ($_G['uid'] != $attach['uid'] || $aid != $attach['aid'])) {
showmessage('portal_attachment_nopermission_delete');
}
if($aid) {