On 9/10/07, werdna@svn.wikimedia.org werdna@svn.wikimedia.org wrote:
if( $wgUser->isAllowed( 'rollback' ) ) {
if( $wgUser->isAllowed( 'rollback' ) && $this->mTitle->userCan( 'edit' ) ) {
Doesn't it make more sense to check $this->mTitle->userCan( 'rollback' ) (making any associated changes needed to userCan)? By default it can just call userCan( 'edit' ), of course, but it's not coherent to hardcode that into the call syntax.
wikitech-l@lists.wikimedia.org