From wesley.wong@anderson.ucla.edu Tue Jun 14 21:15:35 2022 From: "Wong, Wesley" To: mailman-users@mailman3.org Subject: [MM3-users] Removing the option to delete a list on the Postorious interface Date: Tue, 14 Jun 2022 20:43:58 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1751976548749756343==" --===============1751976548749756343== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I have a question on the Postorious web interface in Mailman 3. I have fo= und that a list owner can delete a list through the Postorious interface if t= hey have the role of owner to the list. I wanted to have it either disabled o= r removed but I am not sure where to look to make changes to it. I would rat= her 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. --===============1751976548749756343==-- From mark@msapiro.net Tue Jun 14 21:19:24 2022 From: Mark Sapiro To: mailman-users@mailman3.org Subject: [MM3-users] Re: Removing the option to delete a list on the Postorious interface Date: Tue, 14 Jun 2022 14:19:16 -0700 Message-ID: <4b1fb6fd-ef0b-4d96-2cf9-ac65957884d2@msapiro.net> In-Reply-To: =?utf-8?q?=3CBYAPR04MB61331ED071755C688FA6DA43B5AA9=40BYAPR04MB?= =?utf-8?q?6133=2Enamprd04=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2237754768386145316==" --===============2237754768386145316== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 r= ather remove it from the interface totally so it would be done from the comma= nd line. Any help would be greatly appreciated. The simplest change would be to edit=20 postorius/templates/postorius/menu/list_nav.html and remove the line. ```
  • {% trans 'Delete' %}
  • ``` In addition to the above, you could edit postorius/urls.py and remove=20 the line ``` re_path(r'^delete$', list_views.list_delete, name=3D'list_delete'), ``` or in older Postorius versions ``` url(r'^delete$', list_views.list_delete, name=3D'list_delete'), ``` to render the `delete` URL unknown. --=20 Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan --===============2237754768386145316==--