Edit LocalSetting.php
How to setup only logged in user can edit / add post:
How to setup only admin can add user:
//only logged in user can edit
$wgGroupPermissions['*']['edit'] = false;
//only admin can create account...How to enable upload for wiki media?
$wgGroupPermissions['*']['createaccount'] = false;
//find for $wgEnableUploads
$wgEnableUploads = true;How to allow upload of other files:
$wgFileExtensions[] = "zip";
$wgFileExtensions[] = "gz";
$wgFileExtensions[] = "pdf";
$wgFileExtensions[] = "doc";
$wgFileExtensions[] = "xls";
$wgFileExtensions[] = "ppt";
But, upload will fail if you enable imagemagick, because it assume all your is image. Therefor, we will need to disable imagemagick:
$wgUseImageMagick = false;
Hope it helps ;)
Reference:
http://www.mediawiki.org/wiki/Configuring_file_uploads#Upload_permissions
No comments:
Post a Comment