refactor(library): who may read it is a permission, not the mod_lib setting
library.view, held by the guest and the user roles; the middleware of the module asks it
instead of comparing the setting and the number in two branches. A library closed to
everybody was still open to the administrator, and the migration writes that exception out
the way it did for the forum.
No library.post to go with it: nothing in the module ever gated writing by the setting.
Submitting an article asks for a session and lands in the pre-moderation queue, and inventing
a permission that nothing checks is how a catalogue of rights starts lying.
The 'Library is closed' banner on the index goes: whoever sees the page may read it.
After updating: auth:apply-default-permissions --force, then auth:migrate-module-access.
instead of comparing the setting and the number in two branches. A library closed to
everybody was still open to the administrator, and the migration writes that exception out
the way it did for the forum.
No library.post to go with it: nothing in the module ever gated writing by the setting.
Submitting an article asks for a session and lands in the pre-moderation queue, and inventing
a permission that nothing checks is how a catalogue of rights starts lying.
The 'Library is closed' banner on the index goes: whoever sees the page may read it.
After updating: auth:apply-default-permissions --force, then auth:migrate-module-access.