Closed (fixed)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2019 at 11:41 UTC
Updated:
17 Apr 2019 at 14:24 UTC
Jump to comment: Most recent
I am surprised that the hidden newsletters are visible even on the admin page - that seems like a bug to me.
I propose that we reset the meaning of hidden to mean hidden from all, matching D7. If anyone wants to make the case for adding "hidden, but admin can edit" then this can be a separate feature request.
Comments
Comment #2
adamps commentedI can write a patch for this. @Berdir - please can you check my proposal and let me know if you agree with this approach.
Comment #3
adamps commentedIn fact there is already an issue for selective permissions #1140606: Permissions Per-Newsletter: Limit subscription options by role
Comment #4
adamps commentedIn fact it's clear from the code for SubscriberForm that this is accidental behaviour.
There is an attempt to restrict to visible
simplenews_newsletter_get_visible(), but unfortunately it's too late - this line needs to go before the call to build the parent form.I'll create a patch.
Comment #5
adamps commentedFixed by the commit for #3013721: SubscriberForm overwrites existing subscription data