Tags:
create new tag
, view all tags

Feature Proposals » TWiki::Users::canRenameWeb() for symmetry with TWiki::Users::canCreateWeb()

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
MergedToCore HideyoImazu AcceptedByReleaseMeeting 2017-01-16   TWikibug:Item7768 KampalaRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

Motivation

You may want to be able to rename a web even if you don't have rename access to its parent.

Description and Documentation

TWiki::UI::Manage::_createWeb() calls TWiki::Users::canCreateWeb($users, $web) to check if the user is allowed to create the web. But there is no similar check in TWiki::UI::Manage::_renameweb(). For symmetry and flexibility _renameweb() needs to call TWiki::Users::canRenameWeb($user, $oldWeb, $newWeb). And TWiki::Users::canRenameWeb() will be similar to TWiki::Users::canCreateWeb() -- calling the canCreateWeb method of the user handler.

Examples

If {UserSubWebs}{Enabled} is true and user registration is not required (basic user information is provided by LDAP or other non-TWiki means), then a user should be able to create and delete their personal web as a subweb of the Main top level web. Meanwhile, you may want to restrict changes to the Main web to prevent garbage from accumulating -- the Main web will soon be filled with junks if you have thousands of users but for restriction. As of now, you can allow a user to create their subweb under Main by defining canCreateWeb() in your user mapping handler. But it's not possible to allow a user to delete or rename their personal web because of lack of TWiki::Users::canRenameWeb() hence no call for that in TWiki::UI::Manage::_renameweb().

Impact

Implementation

-- Contributors: Hideyo Imazu - 2017-01-16

Discussion

Spec looks good to me.

-- Peter Thoeny - 2017-01-19

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2017-01-25 - HideyoImazu
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.