Manual:$wgDismissableSiteNoticeForAnons/en

Details
Whether site notice dismiss button `[dismiss]` should be shown to anonymous (unregistered) users. If it's false (default), sitenotices are effectively undismissable unless one registers.

The button will be shown to all registered users irrespective of this setting.