canCreateWeb($cUID, $web)
method of the user mapping manager is called if the method exists.
If the method returns true, the web is created 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 *WEBCHANGE.
The method would be written as follows.
sub canCreateWeb { my( $this, $cUID, $web ) = @_; ... }Similarly, when a web is renamed, the
canRenameWeb($cUID, $oldWeb, $newWeb)
method of the user mapping manager is called if the method exist.
If it returns true, permission check on the parent web is omitted.
If the method does not exist or the method returns false, permission check on the parent web is conducted as usual.
Then, permission check on the rename destination takes place.
Related Topics: AdminDocumentationCategory, TWikiAccessControl, LargeSite, UserSubwebs ![]() |
![]() |
Questo sito usa cookies, usandolo ne accettate la presenza. (CookiePolicy)
Torna al Dipartimento di Informatica ![]() |
|
![]() |
![]() |