mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
fix access talk comments
This commit is contained in:
parent
5457ec4dd0
commit
a382f29eb7
|
@ -595,6 +595,9 @@ class ActionTalk extends Action
|
|||
if (!($oTalkUser = $this->Talk_GetTalkUser($oTalk->getId(), $this->oUserCurrent->getId()))) {
|
||||
return $this->EventErrorDebug();
|
||||
}
|
||||
if (!in_array($oTalkUser->getUserActive(),array(ModuleTalk::TALK_USER_ACTIVE))) {
|
||||
return $this->EventErrorDebug();
|
||||
}
|
||||
/**
|
||||
* Получаем комментарии
|
||||
*/
|
||||
|
@ -660,6 +663,9 @@ class ActionTalk extends Action
|
|||
if (!($oTalkUser = $this->Talk_GetTalkUser($oTalk->getId(), $this->oUserCurrent->getId()))) {
|
||||
return $this->EventErrorDebug();
|
||||
}
|
||||
if (!in_array($oTalkUser->getUserActive(),array(ModuleTalk::TALK_USER_ACTIVE))) {
|
||||
return $this->EventErrorDebug();
|
||||
}
|
||||
/**
|
||||
* Проверяем разрешено ли постить комменты
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue