Con­figu­ration para­meter "$smwgCreateProtectionRight"

From semantic-mediawiki.org
Configuration parameter details:
Name $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
Since version
Until version still available
Configuration Installation
Keyword user group · user permission · group · permission · 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 and compatible with MW 1.27.0 - 1.30.x..

Default setting[edit]

$smwgCreateProtectionRight = false;

This means that every user can create new properties.

Changing the default setting[edit]

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[edit]

References

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