Files
wekan/server/lib/announcementVisibility.js
T
Lauri OjansivuandClaude Opus 4.8 bf75efaef5 Add #6051: per-user permanent dismissal of the Announcement banner
A user can permanently close the current global announcement so it does not
reappear on reload or board-switch, until the admin edits the announcement text
(its content-derived version changes, so it reappears for everyone). Dismissed
version stored on the user profile; visibility decided by the unit-tested
shouldShowAnnouncement helper.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 14:39:41 +03:00

10 lines
432 B
JavaScript

// Pure, dependency-free helpers for per-user announcement dismissal (#6051).
// The implementation lives in models/announcements.js (an isomorphic model
// file) so client and server share identical logic. This module re-exports the
// pure functions at the documented test path and is itself free of any
// Meteor/Mongo runtime dependency.
export {
announcementVersion,
shouldShowAnnouncement,
} from '/models/announcements';