diff --git a/file/lib/system/user/notification/event/InvitedUserNotificationEvent.class.php b/file/lib/system/user/notification/event/InvitedUserNotificationEvent.class.php index c76d2ff..84d5f91 100644 --- a/file/lib/system/user/notification/event/InvitedUserNotificationEvent.class.php +++ b/file/lib/system/user/notification/event/InvitedUserNotificationEvent.class.php @@ -2,10 +2,10 @@ namespace chat\system\user\notification\event; /** - * + * Notification event for invites. * * @author Tim Düsterhus - * @copyright 2010-2014 Tim Düsterhus + * @copyright 2010-2015 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike * @package be.bastelstu.chat * @subpackage system.user.notification.event @@ -27,7 +27,8 @@ public function getAuthorID() { * @see \wcf\system\user\notification\event\IUserNotificationEvent::getAuthor() */ public function getAuthor() { - // TODO: caching + // TODO: Change to AbstractSharedUserNotificationEvent w/ Tims Chat 4 + return new \wcf\data\user\UserProfile(new \wcf\data\user\User($this->additionalData['userID'])); } @@ -69,7 +70,6 @@ public function supportsEmailNotification() { * @see \wcf\system\user\notification\event\IUserNotificationEvent::checkAccess() */ public function checkAccess() { - // TODO - return true; + return $this->userNotificationObject->getDecoratedObject(); } } diff --git a/file/lib/system/user/notification/object/RoomUserNotificationObject.class.php b/file/lib/system/user/notification/object/RoomUserNotificationObject.class.php index 18d95ec..64a29ca 100644 --- a/file/lib/system/user/notification/object/RoomUserNotificationObject.class.php +++ b/file/lib/system/user/notification/object/RoomUserNotificationObject.class.php @@ -2,10 +2,10 @@ namespace chat\system\user\notification\object; /** - * + * User notification object for chat rooms. * * @author Tim Düsterhus - * @copyright 2010-2014 Tim Düsterhus + * @copyright 2010-2015 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike * @package be.bastelstu.chat * @subpackage system.user.notification.object diff --git a/file/lib/system/user/notification/object/type/RoomUserNotificationObjectType.class.php b/file/lib/system/user/notification/object/type/RoomUserNotificationObjectType.class.php index 5a0eed1..1f1c60b 100644 --- a/file/lib/system/user/notification/object/type/RoomUserNotificationObjectType.class.php +++ b/file/lib/system/user/notification/object/type/RoomUserNotificationObjectType.class.php @@ -2,7 +2,7 @@ namespace chat\system\user\notification\object\type; /** - * + * Chat room user notification object type. * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus