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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-07-11 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.