canCreateWeb($cUID, $web)
method of the user mapping manager is called if the method exists.
If the method returns true, TWiki goes ahead and create the web without checking DENYROOTCHANGE and ALLOWROOTCHANGE (for a top level web) or DENYWEBCHANGE and ALLOWWEBCHANGE (of the parent of a subweb).
If the method does not exist or the method returns false, web creation is permitted as usual based on ROOTCHANGE or ALLOWWEBCHANGE.
Maybe needless to say, the method would be written as follows.
sub canCreateWeb { my( $this, $cUID, $web ) = @_; ... }Related Topics: AdminDocumentationCategory, TWikiAccessControl, UserSubwebs
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.AllowWebCreateByUserMappingManager. |