[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Calendar: Prevent user without the view_events permission to see the popup description

"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <698b16bf3f0f0_3b184ef825227@gitlab-sidekiq-low-urgency-cpu-bound-v2-6c7f7654c9-xp6sd.mail>

Adrien Mbuya Maloba pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
cb653a0e by Adrien Mbuya Maloba at 2026-02-10T13:23:37+02:00
[FIX] Calendar: Prevent user without the view_events permission to see the popup description
---
* [FIX] Calendar: Prevent user without the view_events permission to see the popup description
---
* [FIX] Calendar: Prevent user without the view_events permission to see the popup description

See merge request tikiwiki/tiki!9482

See merge request tikiwiki/tiki!9533

- - - - -


1 changed file:

- src/js/jquery-tiki/tiki-calendar.js


Changes:

=====================================
src/js/jquery-tiki/tiki-calendar.js
=====================================
@@ -186,7 +186,8 @@ $.fn.setupFullCalendar = function (
                     }
                 }
                 const eventTitle = tooltipEscape(event.title);
-                element.attr("title", eventTitle + "|" + event.extendedProps.description);
+                const eventDescription = event.extendedProps.viewable === true ? event.extendedProps.description : "";
+                element.attr("title", eventTitle + "|" + eventDescription);
                 element.addClass("tips");
                 // surely there's a better way?
                 $(element).parent().tiki_popover();



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cb653a0e1cfc4ada0fb2ff463b92f06485c0b3a2

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cb653a0e1cfc4ada0fb2ff463b92f06485c0b3a2
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.