Danke dir für die Info, hatte per Handy nur gerade geguckt gehabt und hatte dies vermutet.
Jedoch musst die Datei wie folgt bearbeitet werden
PHP: ViewableNewsUpdateList.class.php
public function __construct($news = null) {
parent::__construct();
$this->news = $news;
$this->sqlJoins .= " LEFT JOIN wcf" . WCF_N . "_user user_table ON (user_table.userID = " . $this->getDatabaseTableAlias() . ".userID)";
$this->sqlJoins .= " LEFT JOIN wcf" . WCF_N . "_user_avatar user_avatar ON (user_avatar.avatarID = user_table.avatarID)";
$this->sqlJoins .= " LEFT JOIN wcf" . WCF_N . "_user_option_value user_option_value ON (user_option_value.userID = user_table.userID)";
if (MODULE_USER_RANK) {
if (!empty($this->sqlSelects)) {
$this->sqlSelects .= ",";
}
$this->sqlSelects .= "user_rank.*";
$this->sqlJoins .= " LEFT JOIN wcf" . WCF_N . "_user_rank user_rank ON (user_rank.rankID = user_table.rankID)";
}
if ($this->news != null) {
$this->conditionBuilder->add($this->getDatabaseTableAlias() . ".newsID = ?", [$this->news->newsID]);
}
if (!News::checkPermission("mod.news.canEnableUpdate")) {
$this->conditionBuilder->add('(' . $this->getDatabaseTableAlias() . '.isDisabled = 0 OR ' . $this->getDatabaseTableAlias() . '.userID = ?)', [WCF::getUser()->userID]);
}
if (!News::checkPermission("mod.news.canDeleteUpdate")) {
$this->conditionBuilder->add('(' . $this->getDatabaseTableAlias() . '.isDeleted = 0 OR ' . $this->getDatabaseTableAlias() . '.userID = ?)', [WCF::getUser()->userID]);
}
}
Alles anzeigen
Den construct einfach durch das hier ersetzen