ezmlm: [patch] allow -faq and -info for everyone


Previous by date: 16 Apr 2018 09:27:35 -0000 owner vs moderator, Valerio Messina
Next by date: 16 Apr 2018 09:27:35 -0000 [ marked spam because of up-keeping From: header ], Sergiusz Pawlowicz
Previous in thread:
Next in thread:

Subject: [patch] allow -faq and -info for everyone
From: Robert Schulze ####@####.####
Date: 16 Apr 2018 09:27:35 -0000
Message-Id: <77f61d67-ef13-cb8b-cd53-305f48b6d925@bytecamp.net>

Hello,

according to the documentation [1] every user should be able to use the
-faq and -info commands regardless of the public-flag, like it is
already allowed for -help.

The following patch enables this:

-- 8< -------------------------------------------------------------

--- bin/ezmlm-manage.c.orig	2018-01-17 20:16:28.000000000 +0100
+++ bin/ezmlm-manage.c	2018-04-16 11:01:54.541715400 +0200
@@ -1246,7 +1246,9 @@
 				/* needs to be tested. */

   if (!flagpublic && !(ismod && remote.s != 0) &&
-                !case_equals(action,ACTION_HELP))
+                !case_equals(action,ACTION_HELP) &&
+                !case_equals(action,ACTION_FAQ) &&
+                !case_equals(action,ACTION_INFO))
       strerr_die2x(100,FATAL,MSG(ERR_NOT_PUBLIC));

   if (flagdig == FLD_DENY)

-- 8< -------------------------------------------------------------

Any coments on that?

regards,
Robert Schulze


1: https://untroubled.org/ezmlm/manual/User-Commands.html#User-Commands

Previous by date: 16 Apr 2018 09:27:35 -0000 owner vs moderator, Valerio Messina
Next by date: 16 Apr 2018 09:27:35 -0000 [ marked spam because of up-keeping From: header ], Sergiusz Pawlowicz
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.21.