Added option to mark a list as not being allowed to be subscribed by public users using the form.
The settings is a checkbox in list create/edit.
This commit is contained in:
parent
80cf2c8888
commit
c74232e9c5
7 changed files with 60 additions and 12 deletions
|
@ -82,6 +82,10 @@ router.get('/create', passport.csrfProtection, (req, res) => {
|
|||
|
||||
data.csrfToken = req.csrfToken();
|
||||
|
||||
if (!('publicSubscribe' in data)) {
|
||||
data.publicSubscribe = true;
|
||||
}
|
||||
|
||||
res.render('lists/create', data);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue