The
TWiki::Func::permissionsSet method is only used in
TigerSkin, and it's hard to work out what it's being used for there. The spec is wierd, and the doc is unclear on why you would want such a thing. The method that implements it in
Access.pm is never called in the core. I believe this function should be deprecated.
See also
TWiki:Codev/DeprecateTWikiFuncPermissionSet
permissionsSet( $web ) -> $boolean
Test if any access restrictions are set for this web, ignoring settings on
individual pages
-
$web - Web name, required, e.g. 'Sandbox'
Since: TWiki::Plugins::VERSION 1.000 (27 Feb 2001)
DEPRECATED since 1.12 - use
getPreferencesValue instead to determine
what permissions are set on the web, for example:
foreach my $type qw( ALLOW DENY ) {
foreach my $action qw( CHANGE VIEW ) {
my $pref = $type . 'WEB' . $action;
my $val = getPreferencesValue( $pref, $web ) || '';
if( $val =~ /\S/ ) {
print "$pref is set to $val on $web\n";
}
}
}
--
TWiki:Main/CrawfordCurrie
- 07 Feb 2007
Removed from doc (though not from code, of course)
CC
Cleaned "WaitingFor" field.
--
TWiki:Main.GilmarSantosJr
- 10 Aug 2008