Tags:
create new tag
, view all tags

Question

how to prevent to view a part of topic from non-authenticated user.?

%IF{"context authenticated" then="
   * [[%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebTopicCreator?parent=%BASETOPIC%][ %ICON{"newtopic"}% %MAKETEXT{"Create New Topic"}%]]
" else="Not support"}%

I tried.see below output result.

LOGIN -> 1 (It is NOT I want to output result);
LOGOUT -> Not support

how to prevent to view a part of topic from non-authenticated user.?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux ia64
Web server: apache 1.3
Perl version: 5.8
Client OS: win2k
Web Browser: ie6
Categories: Security

-- IlhoYu - 11 Jul 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The easiest way to do this is to define the conditional text in another topic - for example, "IncludeMe". Then do this:

%INCLUDE{"%IF{"context authenticated" then="IncludeMe"}%" warn="off"}%

-- CrawfordCurrie - 11 Jul 2006

 
Topic revision: r2 - 2006-07-11 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.