Since upgrading from the December beta to RC1, username variables are no longer expanded in some cases.
Example 1:
- Go to http://www.vsfe.org/twiki
- Click on a link in the text, e.g. "Knowledge base"
- You get a login screen OOPS, which no longer expands the current login name: "%WIKINAME% has no permission to VIEW Knowledge.WebHome." (without the nop's, of course)
Example 2:
--LvZ
Do you have the following in
TWikiPreferences?
* Shortcuts to user information
* Set WIKINAME = %USERINFO{format="$wikiname"}%
* Set USERNAME = %USERINFO{format="$username"}%
* Set WIKIUSERNAME = %USERINFO{format="$wikiusername"}%
I believe it was r8510.
--
AJA
mmm, thats a good point - if we were to deprecate these variables, but set their defaults in code that might be safer.
I also want to add $groups to list the groups the user is in - so i'll have a play, and then update here
SD
I
like the
$groups
idea!
I've occasionally wanted to extact the members of a group and see if the current user is in that group, but this can equally well do things the other way round. Good idea. Adds value.
--
AJA
Hmm, tried adding the above definitions to
TWikiPreferences, but that just gives me: "-- $wikiusername - 29 Jan 2006"
%WIKINAME% does seem to work fine now, though.
--
LvZ
ah, sorry - I changed the way userINFo works just after rc1 was cooked - for rc1 oyu'll need to set those 3 variables as they are in the
TWikiPreferences topic in the zipfile (this will change for the final release to what Anton mentioned above)
* Shortcuts to user information
* Set WIKINAME = %USERINFO{format="$wikiname"}%
* Set USERNAME = %USERINFO{format="$login"}%
* Set WIKIUSERNAME = %USERINFO{format="$web.$wikiname"}%
-- SD
It is
much safer to expand the USERNAME, WIKINAME, WIKIUSERNAME in the code. To avoid more upgrade issues we should not use the preferences setting for this.
--
PTh
svn:8613
-- SD