use wcf\data\ITitledObject;
use wcf\data\TDatabaseObjectOptions;
use wcf\data\TDatabaseObjectPermissions;
+use wcf\system\acl\simple\SimpleAclResolver;
use wcf\system\application\ApplicationHandler;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\SystemException;
* @return boolean
*/
public function isAccessible() {
- // @todo
- return true;
+ return SimpleAclResolver::getInstance()->canAccess('com.woltlab.wcf.page', $this->pageID);
}
/**
throw new IllegalLinkException();
}
+ if (!$this->page->isAccessible()) {
+ throw new IllegalLinkException();
+ }
+
$this->content = $this->page->getPageContentByLanguage($this->languageID);
if (empty($this->content)) {
throw new IllegalLinkException();