mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Resolve some TODOs
This commit is contained in:
parent
763d04fb51
commit
5a1eabcad7
@ -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 <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||
* @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();
|
||||
}
|
||||
}
|
||||
|
@ -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 <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||
* @package be.bastelstu.chat
|
||||
* @subpackage system.user.notification.object
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user