Tags:
create new tag
, view all tags

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 revision: r2 - 2005-02-21 - MattWilkie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, 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.