summaryrefslogtreecommitdiff
path: root/app/Helper/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Helper/User.php')
-rw-r--r--app/Helper/User.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Helper/User.php b/app/Helper/User.php
index 3108a79a..6b7d6f73 100644
--- a/app/Helper/User.php
+++ b/app/Helper/User.php
@@ -11,6 +11,17 @@ namespace Helper;
class User extends \Core\Base
{
/**
+ * Return true if the logged user as unread notifications
+ *
+ * @access public
+ * @return boolean
+ */
+ public function hasNotifications()
+ {
+ return $this->webNotification->hasNotifications($this->userSession->getId());
+ }
+
+ /**
* Get initials from a user
*
* @access public