Thanks both of you, I knew it was something close to that but wasnt 100%
sure on the permission name
On Wed, Sep 17, 2014 at 4:21 PM, Jeremy Baron <jeremy(a)tuxmachine.com> wrote:
On Wed, Sep 17, 2014 at 8:10 PM, chris tharp
<tharpenator(a)gmail.com>
wrote:
Does anyone know away that all file uploads could
be automatically
protected upon upload? So if someone tried to upload a photo with name
already used they couldn't overwrite it?
https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Upload_permiā¦
says:
The right to replace existing files is handled by
an extra permission,
called reupload:
* To prevent normal users from overriding existing files:
$wgGroupPermissions['user']['reupload'] = false;
* To allow "autoconfirmed" (non-newbie) users to replace existing files:
$wgGroupPermissions['autoconfirmed']['reupload'] = true;
If a ForeignFileRepo is set, the right to replace those files locally is
handled
by an special permission, called reupload-shared:
* To prevent normal users from overriding filerepo files locally:
$wgGroupPermissions['user']['reupload-shared'] = false;
* To allow "autoconfirmed" (non-newbie) users to replace filerepo files
locally:
$wgGroupPermissions['autoconfirmed']['reupload-shared'] = true;
-Jeremy
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l