/** * @see \wcf\system\comment\manager\ICommentManager::isAccessible() */ public function isAccessible($objectID, $validateWritePermission = false) { // check object id $entry = new Entry($objectID); if (!$entry->entryID || !$entry->canRead()) { return false; } return true; }
/** * @see \wcf\system\attachment\IAttachmentObjectType::canDownload() */ public function canDownload($objectID) { if ($objectID) { $entry = new Entry($objectID); if ($entry->canRead()) { return true; } } return false; }