ayd-in Posted February 10, 2014 Share Posted February 10, 2014 Здравствуйте!В правом в верхнем углу есть кнопка ссылка на сообщение. Пользователь попадает не в то сообщение, если в теме есть скрытые модератором или администратором сообщения.не могу разобраться, чтобы отображался соответсвующее сообщение.Спасибо. в файле forums/topics.php есть кусок кода при добавлении в запрос AND queued=0 для пользователей нормально отображается. else if ($this->request['view'] == 'findpost') { ... $this->DB->build( array( 'select' => 'COUNT(*) as posts', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']} AND {$sort_field} <=" . intval( $sort_value )." " ) ); скажите какую проверку нужно делать чтобы узнать , может ли видить пользователь скрытые сообщения, чтобы добавить запрос. $this->registry->permissions->check( ??? ) Link to comment Share on other sites More sharing options...
ayd-in Posted February 10, 2014 Author Share Posted February 10, 2014 извиняюсь, разобрался сам. if ( !$this->permissions['softDeleteSee'] ){ } тему можно удалить. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now