For example : code line from comments module, comment.php
Here I am expecting, when I am logged in as a BE user (in my case as admin), I am able to see all the comments of an Article in FE (of course in same browser session) irrespective of published or not. Am I right?Code:// Get all published comments $objCommentsStmt = $this->Database->prepare("SELECT * FROM tl_comments WHERE source=? AND parent=?" . (!BE_USER_LOGGED_IN ? " AND published=1" : "") . " ORDER BY date" . (($objConfig->order == 'descending') ? " DESC" : ""));
Since I am not seeing any comments unless I publish it, I assume I didn't understand the constant BE_USER_LOGGED_IN or doing something wrong. Any hinweis would be great.
Bookmarks