[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][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 | <698a1e1ab63c8_3b184b9c712a4@gitlab-sidekiq-low-urgency-cpu-bound-v2-5cbd64784f-n8p7z.mail> |
Adrien Mbuya Maloba pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
c8b81836 by Adrien Mbuya Maloba at 2026-02-09T19:42:10+02:00
[BP][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!9526
- - - - -
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/c8b818363581bb8bb59cb6bec7d4acce5fc71905
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c8b818363581bb8bb59cb6bec7d4acce5fc71905
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