mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix удаления блога
This commit is contained in:
parent
4a34aac449
commit
a58db3a1ca
|
@ -367,7 +367,7 @@ class ModuleACL extends Module {
|
|||
return self::CAN_DELETE_BLOG_EMPTY_ONLY;
|
||||
}
|
||||
|
||||
$oBlogUser=$this->Blog_GetBlogUserByBlogIdAndUserId($oBlog->getId(),$this->oUserCurrent->getId());
|
||||
$oBlogUser=$this->Blog_GetBlogUserByBlogIdAndUserId($oBlog->getId(),$oUser->getId());
|
||||
if($oBlogUser and $oBlogUser->getIsAdministrator()) {
|
||||
return self::CAN_DELETE_BLOG_EMPTY_ONLY;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue