r2 - 24 Feb 2005 - 09:05:39 - OlivierBergerYou are here: TWiki >  Codev Web > ChangeProposal > BugReport > UsingWEBVariableInGroupNames
Tags:
, create new tag

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
elsediff patch_Prefs.pm.diff manage 1.4 K 23 Feb 2005 - 18:18 OlivierBerger  
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