On 6/14/22 10:55, Wong, Wesley wrote:
Hi, I have a question on the Postorious web interface in Mailman 3. I have
found that a list owner can delete a list through the Postorious interface if
they have the role of owner to the list. I wanted to have it either disabled or
removed but I am not sure where to look to make changes to it. I would rather
remove it from the interface totally so it would be done from the command line.
Any help would be greatly appreciated.
The simplest change would be to edit
postorius/templates/postorius/menu/list_nav.html and remove the line.
```
<li role="tab" class="nav-item"><a href="{% url 'list_delete'
list.list_id %}" class="{% nav_active_class current 'list_delete' %}
nav-link">{% trans 'Delete' %}</a></li>
```
In addition to the above, you could edit postorius/urls.py and remove
the line
```
re_path(r'^delete$', list_views.list_delete, name='list_delete'),
```
or in older Postorius versions
```
url(r'^delete$', list_views.list_delete, name='list_delete'),
```
to render the `delete` URL unknown.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/