r2 - 21 Feb 2005 - 22:10:38 - MattWilkieYou are here: TWiki >  Codev Web > IncludePermissionDeniedWarning
Tags:
, create new tag

Patch Proposal: Display warning on including denied depending on INCLUDEWARNING var

Motivation

Including a topic with no proper read permissions for that topic ends up in including a text fragment like "No permission to read topic...". Quite ugly in some cases.

Description

In case of "view permission denied" TWiki interprets the INCLUDEWARNING var and displays a warning according to that.

Documentation

not necessary

Examples

%INCLUDE{"SomeWeb.SomeTopicWithNoReadPermissions" warn="off"}%

Implementation

This patch needs to be patched if the specs of readTopicRaw() change.

Note: Patch is attached as TWiki.pm.IncludePermission.diff. The patch is against the SVN rev #3266.


Discussion:

Topic attachments
I Attachment Action Size Date Who Comment
elsediff TWiki.pm.IncludePermission.diff manage 0.8 K 30 Dec 2004 - 10:42 OliverKrueger  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo