cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item14643: UserRegistration can't be blocked by denying access to the topic.

pencil
Priority: Normal
Current State: Waiting for Release
Released In: n/a
Target Release:
Applies To: Engine
Component: FoswikiUIRegister
Branches: master Release02x01 Item14288
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
System.UserRegistration was changed to use a list style include:
   %INCLUDE{"UsersWeb.UserRegistration, System.DefaultUserRegistration"}%

It may be desired to change UserRegistration to deny it to WikiGuest, for example. The list format include however will fall back to the 2nd entry in the list if the first entry is denied. Foswiki 1.1 used the following format:

%IF{
"istopic '%USERSWEB%.%TOPIC%'"
then="$percentINCLUDE{$quot%USERSWEB%.%TOPIC%$quot NOREGISTRATION=$quot%NOREGISTRATION%$quot}$percent" 
else="$percentINCLUDE{$quot%SYSTEMWEB%.Default%TOPIC%$quot REGISTRATION_DISABLED=$quot%REGISTRATION_DISABLED%$quot}$percent"
}%

This style INCLUDE preserves ability to restrict access to UserRegistration without requiring a change to the System web.

-- GeorgeClark - 05 Mar 2018

 
Topic revision: r2 - 13 Jun 2018, GeorgeClark - This page was cached on 21 Jul 2018 - 13:21.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy