The constant for the file namespace is NS_FILE.
-Chad
On Sep 25, 2009 4:17 AM, "André Meunier" ameunier@ulg.ac.be wrote:
I didn't, I don't know what the name for the namespace is. If I try $wgNamespacePermissionLockdown[File]['read'] = array('bsv','sysop'); It gives me an error *Notice*: Use of undefined constant File - assumed 'File' in */var/web/bsv/public_html/wiki/LocalSettings.php*
I've tried with different names for the namespace (Fichier as my wiki is set to french), but I always get the same error.
Platonides a écrit :
André Meunier wrote: > >> Hello, >> >> I've enabled uploading, and it
works for me (as sysop), ... --
*André Meunier*
Université de Liège Bibliothèque des Sciences de la Vie Bat B35, Avenue de l'Hôpital CHU Sart Tilman 4000 Liège
Téléphone : 04 366 2173
http://www.libnet.ulg.ac.be/mede/
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedi...
I've added
$wgNamespaceProtection[NS_FILE] = array('bsv','sysop');
$wgNamespacePermissionLockdown[NS_FILE]['read'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['edit'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['move'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['createpage'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['createtalk'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['upload'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['reupload'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['reupload-shared'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE]['minoredit'] = array('bsv','sysop');
$wgNamespacePermissionLockdown[NS_FILE_TALK]['read'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['edit'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['move'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['createpage'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['createtalk'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['upload'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['reupload'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['reupload-shared'] = array('bsv','sysop'); $wgNamespacePermissionLockdown[NS_FILE_TALK]['minoredit'] = array('bsv','sysop');
and it still doesn't work for a user with bsv rights.
Chad a écrit :
The constant for the file namespace is NS_FILE.
-Chad
On Sep 25, 2009 4:17 AM, "André Meunier" ameunier@ulg.ac.be wrote:
I didn't, I don't know what the name for the namespace is. If I try $wgNamespacePermissionLockdown[File]['read'] = array('bsv','sysop'); It gives me an error *Notice*: Use of undefined constant File - assumed 'File' in */var/web/bsv/public_html/wiki/LocalSettings.php*
I've tried with different names for the namespace (Fichier as my wiki is set to french), but I always get the same error.
Platonides a écrit :
André Meunier wrote: > >> Hello, >> >> I've enabled uploading, and it
works for me (as sysop), ...
*André Meunier*
Université de Liège Bibliothèque des Sciences de la Vie Bat B35, Avenue de l'Hôpital CHU Sart Tilman 4000 Liège
Téléphone : 04 366 2173
http://www.libnet.ulg.ac.be/mede/
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedi... _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
André Meunier wrote:
I've added
$wgNamespaceProtection[NS_FILE] = array('bsv','sysop');
What about reading the docs? http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection /If you list more than one permission for a given namespace, a user must have all of them to edit pages in that namespace./
The solution is to place only bsv in $wgNamespaceProtection and give the sysop group the bsv right.
($wgNamespacePermissionLockdown works the other way, user must be on *any* of those groups)
$wgNamespaceProtection[NS_FILE] = array('bsv');
This is what I had tried first, but it didn't work. I have a lot of permissions in the localsettings, but none about the file namespace.
Platonides a écrit :
André Meunier wrote:
I've added
$wgNamespaceProtection[NS_FILE] = array('bsv','sysop');
What about reading the docs? http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection /If you list more than one permission for a given namespace, a user must have all of them to edit pages in that namespace./
The solution is to place only bsv in $wgNamespaceProtection and give the sysop group the bsv right.
($wgNamespacePermissionLockdown works the other way, user must be on *any* of those groups)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
André Meunier wrote:
$wgNamespaceProtection[NS_FILE] = array('bsv');
This is what I had tried first, but it didn't work. I have a lot of permissions in the localsettings, but none about the file namespace.
That line restricts the file namespace. Try removing it and see if the problem persists. Then decide what you want to achieve.
It didn't work without the line, which is why I sent the mail in the first place, and was given the namespaceprotection as a lead. I have nothing in my localsettings about the ns_file namespace, and it gives me the namespaceprotected error message. It works for me, with sysop rights, but not for another user.
Platonides a écrit :
André Meunier wrote:
$wgNamespaceProtection[NS_FILE] = array('bsv');
This is what I had tried first, but it didn't work. I have a lot of permissions in the localsettings, but none about the file namespace.
That line restricts the file namespace. Try removing it and see if the problem persists. Then decide what you want to achieve.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org