Help:Configuration parameter "$smwgCreateProtectionRight"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form


Title $smwgCreateProtectionRight
Description Sets the user right required to create new properties
Default setting
false
This means that every user can create new properties
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Installation
Keyword user group · gardening

$smwgCreateProtectionRight is a configuration parameter that sets the user right required to create new properties as part of the authority mode enforceable on a wiki for better semantic gardening.1 By default every user may create new properties. Note that changes to a property specification requires the permission set with this configuration parameter as well. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x..

Default setting

$smwgCreateProtectionRight = false;

This means that every user can create new properties.

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Restrict the creation of new properties to the "smw-pageedit" permission
$smwgCreateProtectionRight = 'smw-pageedit';

This means that only users with the "smw-pageedit" permission will be able to create new properties. By default this user right is connected with the Curator (smwcurator) user group. Using the "smw-pageedit" permission appears to be the most obvious one to use here since edit protection feature is also associated with it. However other permissions including a wiki defined one is possible, too.

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2600