Skip to content

Commit

Permalink
Item14643: Use IF statement with UserRegistration INCLUDE
Browse files Browse the repository at this point in the history
This allows better ACL control of the INCLUDEed topic.
  • Loading branch information
gac410 committed Mar 5, 2018
1 parent f21ac56 commit fbbf881
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions TopicUserMappingContrib/data/System/UserRegistration.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
%META:TOPICINFO{author="ProjectContributor" comment="" date="1452812379" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1520218740" format="1.1" version="1"}%
%META:TOPICPARENT{name="UserToolsCategory"}%
<!--

DO NOT EDIT THIS TOPIC.

* Set REGISTRATION_DISABLED = %IF{"context registration_supported" then="%IF{"context registration_enabled" then="" else="DISABLED"}%" else="DISABLED"}%
-->
%INCLUDE{"%USERSWEB%.%TOPIC%, %SYSTEMWEB%.Default%TOPIC%"}%

%IF{
"istopic '%USERSWEB%.%TOPIC%'"
then="$percentINCLUDE{$quot%USERSWEB%.%TOPIC%$quot warn=$quot%MAKETEXT{"User Registration is not available."}%$quot}$percent"
else="$percentINCLUDE{$quot%SYSTEMWEB%.Default%TOPIC%$quot }$percent"
}%

%IF{"context isadmin AND NOT istopic '%USERSWEB%.%TOPIC%'" then='<div class="foswikiHelp">
*Tailoring instructions:* You are currently viewing the default registration page without local tailoring. This topic looks whether a
Expand Down

0 comments on commit fbbf881

Please sign in to comment.