Removing the option to delete a list on the Postorious interface
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.
wesley
Wesley Wong Senior Systems Engineer Anderson Computing & Information Services | ACIS 310-206-2571 [ucla-logo---new_smaller]
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: image001.png
Replaced multipart/alternative part with first alternative.
On 6/14/22 13:43, 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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Wong, Wesley