Skip to content
Snippets Groups Projects
Commit c97c5a5f authored by Alex Cotiugă's avatar Alex Cotiugă
Browse files

XWIKI-17905: Remove all the UI notifications elements when notifications are disabled

* displat the Notification category in user profile only when the notifications are enabled
* this change brings consistency between the Notification category and the  Notification bell from the top right menu, which is not displayed when the notifications are disabled
parent 53e8292a
No related branches found
No related tags found
No related merge requests found
......@@ -360,7 +360,7 @@
<parameters>id=notifications
icon=bell
# isActive: The user is seeing her own profile or can administrate the current document
isActive=#if(($services.model.resolveDocument($xcontext.user) == $doc.documentReference) || $services.security.authorization.hasAccess('admin', $doc.documentReference))true#{else}false#end
isActive=#if($services.notification.isEnabled() &amp;&amp; ($services.model.resolveDocument($xcontext.user) == $doc.documentReference || $services.security.authorization.hasAccess('admin', $doc.documentReference)))true#{else}false#end
priority=60</parameters>
</property>
<property>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment