mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-17 00:08:17 +03:00
фикс на просмотр топиков
This commit is contained in:
parent
be22a58b56
commit
cf4b72881b
|
@ -577,7 +577,7 @@ class ActionBlog extends Action {
|
|||
/**
|
||||
* Проверяем права на просмотр топика
|
||||
*/
|
||||
if (!$oTopic->getPublish() and $this->oUserCurrent->getId()!=$oTopic->getUserId() and !$this->oUserCurrent->isAdministrator()) {
|
||||
if (!$oTopic->getPublish() and (!$this->oUserCurrent or ($this->oUserCurrent->getId()!=$oTopic->getUserId() and !$this->oUserCurrent->isAdministrator()))) {
|
||||
return parent::EventNotFound();
|
||||
}
|
||||
/**
|
||||
|
@ -656,7 +656,7 @@ class ActionBlog extends Action {
|
|||
/**
|
||||
* Проверяем права на просмотр топика
|
||||
*/
|
||||
if (!$oTopic->getPublish() and $this->oUserCurrent->getId()!=$oTopic->getUserId() and !$this->oUserCurrent->isAdministrator()) {
|
||||
if (!$oTopic->getPublish() and (!$this->oUserCurrent or ($this->oUserCurrent->getId()!=$oTopic->getUserId() and !$this->oUserCurrent->isAdministrator()))) {
|
||||
return parent::EventNotFound();
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue