修复 文章附件权限判断
This commit is contained in:
parent
a518a2927b
commit
60405cd703
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue