Tags:
create new tag
view all tags

SID-01967: new topic only view by group members in Twiki

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5.20
Category: CategoryAccessControl Server OS: LINUX Last update: 11 years ago

I am new to Twiki. I create several groups but when I create any topic from sendbox than this topic can be viewed,changed and edited by all the members of any group. In order to restrict view of the topic created by one group from other group I edit WebTopicEditTemplate page and put below restriction at the end of the file:

* Set ALLOWTOPICVIEW = %USERNAME%.%GROUPS%

I am not sure this is right or wrong but this not work for me. Can you please help me how can I restrict user from viewing topic created by other groups.

-- TWiki Guest - 2014-09-08

Discussion and Answer

Create a bullet in WYSIWYG mode or raw edit mode. A bullet in raw edit is three spaces, an asterisk, a space, and the text. Example:

   * Set ALLOWTOPICVIEW = %USERSWEB%.SomeGroup

The SomeGroup is the group you defined in TWikiGroups. If you want to restrict view access to all topics in a web it is better to define that in the WebPreferences of that web - define the ALLOWWEBVIEW setting.

See detail in TWikiAccessControl.

-- Peter Thoeny - 2014-09-08

Hi thanks for Quick reply.

I have 3 groups MyGroup,OfficeGroup,ClgGroup. And all groups have some members. now if MyGroup client create document than this should be viewd only by member of MyGroup, same is also true for other two groups. so what I have to write in place of someGroup. is there any way to provide this functionality dynamically. means in the page where user create new topic.?

-- TWiki Guest - 2014-09-09

The easiest is to create three webs, one for each group. Lock down each web to its group. For the OfficeGroup you create an Office web, then lock down that web in Office.WebPreferences with a ALLOWWEBVIEW = %USERSWEB%.OfficeGroup setting.

There is also a way to lock down topics selectively in a web with ALLOWTOPICVIEW in each topic. If you want to automate that based on groups you would need to create a topic template per group and a custom HTML form to create a new topic based on one of these template topics. Details in TWikiTemplates.

-- Peter Thoeny - 2014-09-09

      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 new topic only view by group members in Twiki
SupportCategory CategoryAccessControl
TWiki version 6.0.0
Server OS LINUX
Web server Apache
Perl version 5.20
Browser & version CROME
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2014-09-09 - 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.