Tags:
create new tag
view all tags

Question

Is there a TWikiGroup variable, like %WIKINAME% will display your current user: TWikiGuest.

I would like to use such a variable in combination with the SpreadSheetPlugin in order to hide content on a page from all but certain groups.

If there isn't a %TWIKIGROUP%, or something similar, then how could I go about setting up such a thing?

Thanks

-- JensPagotto - 04 Jul 2006

Answer

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.

Not yet, if I remember correct.

-- FranzJosefSilli - 04 Jul 2006

Okay, well if there is a lack of a %TWIKIGROUP% function then prehaps there is a different way to achieve the results I want.

If I use:

%INCLUDE{MyTopic}%
on a page, where MyTopic is restricted for some groups using the "TOPICVIEW =" setting then will it hide that topic from some users?

Yes, that partially works, but when a unprivilaged user logs in they get the error message "No permission to view MyTopic". Which is not ideal. Can we suppress this message?

-- JensPagotto - 06 Jul 2006

You could try a %SEARCH% to check whether a user is listed in the desired TWiki group topic. Send the output to a SpreadSheetPlugin variable and test it. Not very helpful, if you have recursive group definitions.

Sounds like a good example for a new TWiki tag.

-- PankajPant - 07 Jul 2006

Nice idea Pankaj.

For now I have used the = Warning: Can't find topic ""."" = statment and set warn to off, which seems to do the trick, but it's not ideal.

If no-one else has any input then I guess we can close this question off as answered.

-- JensPagotto - 07 Jul 2006

%GROUPS% is in releases from 4.0.3 onwards, though it has a known problem (will crash TWiki if there are no groups defined); fixed in 4.1)

-- CrawfordCurrie - 19 Jul 2006

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-07-19 - CrawfordCurrie
 
  • 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.