r60418 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r60417
|
r60418
|
r60419
>
Date:
21:56, 26 December 2009
Author:
mrzman
Status:
ok
Tags:
Comment:
Per CR on
r58079
, add a permission check for 'reupload-shared' to
Title::isValidMoveOperation when moving a file over one on a shared repo
Modified paths:
/trunk/phase3/includes/Title.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Title.php
—
—
@@ -2686,7 +2686,10 @@
2687
2687
if( !File::checkExtensionCompatibility( $file, $nt->getDBkey() ) ) {
2688
2688
$errors[] = array('imagetypemismatch');
2689
2689
}
2690
+ } elseif( !$wgUser->isAllowed( 'reupload-shared' ) && wfFindFile( $nt ) ) {
2691
+ $errors[] = array( 'file-exists-sharedrepo' );
2690
2692
}
2693
+
2691
2694
}
2692
2695
2693
2696
if ( $auth ) {
Follow-up revisions
Revision
Commit summary
Author
Date
r60420
Fix for
r60418
, need to check whether the /destination/ file exists...
mrzman
22:04, 26 December 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r58079
(
bug 18019
) Warn users when moving a file to a name in use on a shared repo....
mrzman
04:36, 24 October 2009
Status & tagging log
06:47, 30 December 2009
Tim Starling
(
talk
|
contribs
)
changed the
status
of r60418
[
removed:
new
added:
ok]