Tags:
create new tag
, view all tags

Bug: Using %WEB% in group names

Group names cannot be defined using %WEB%. That would help defining group access/change restrictions for webs, if having a policy of groups named after the Web's name, for instance %WEB%Group or %WEB%AdminGroup.

Test case

Say we're in a Web called Myweb. Setting for instance a WebPreferences ALLOWWEBCHANGE to the value "Main.%WEB%AdminGroup" won't allow users belonging to a group named MywebAdminGroup to modify the web's content.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- OlivierBerger - 23 Feb 2005

Impact and Available Solutions

Follow up

 

Fix record

The following patch proposes a solution for CairoRelease : patch_Prefs.pm.diff

Discussion

At our site, we're creating webs using templates and constructing some groups automatically with default access and change protections using %WEB% in the groups names in WebPreferences, but we found out that it wouldn't work : users permissions would only be correct if the group names were "absolute"... applying the patch seems to solve the issue, then greatly helping to lighten the web creation process. -- OlivierBerger - 23 Feb 2005

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatdiff patch_Prefs.pm.diff manage 1.4 K 2005-02-23 - 18:18 OlivierBerger  
Topic revision: r2 - 2005-02-24 - OlivierBerger
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, 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.