Tags:
create new tag
view all tags

SID-00471: Allowing changes done by specific plugins

Status: Answered Answered TWiki version: Perl version:
Category: CategoryAccessControl Server OS: Last update: 16 years ago

I have restricted the permission to change a topic to a small number of people using the setting ALLOWWEBCHANGE = %MAINWEB%.TWiki.AdminGroup in the WebPreferences topic. On the other hand, I would like to allow any user to enter a comment to a topic. For that reason I have included the Comment plugin of the TWiki Enterprise Collaboration Platform. Entering a comment, however, leads the user to an access denied page.

How can I allow users to enter comments without allowing them to change the whole topic?

-- MichaelBeck - 2009-08-10

Discussion and Answer

In YourTopic include a CommentsTopic using %INCLUDE{"CommentsTopic"} and in the comment plugin invocation use the target parameter. CommentsTopic should have write access but YourTopic can remain protected.

.
.
.
YourTopic body
.
.
.
%COMMENT{ target="CommentsTopic"}%
%INCLUDE{"CommentsTopic"}%

-- EnriqueCadalso - 2009-08-11

You can do that transparently by having one web for actual content with access restriction, and an open web for comments. Each content page has an associated comments page in the comments web. Assuming you have a web called Eng and a web called EngComments, you can add this to the end of content pages:

%COMMENT{ target="EngComments.%TOPIC%" }%
%INCLUDE{"EngComments.%TOPIC%"}%

-- PeterThoeny - 2009-08-11

      Change status to:
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.
SupportForm
Status Answered
Title Allowing changes done by specific plugins
SupportCategory CategoryAccessControl
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-08-11 - PeterThoeny
 
  • 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.