$smwgCreateProtectionRight
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 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..
Default setting[edit]
$smwgCreateProtectionRight = false;
This means that every user can create new properties.
Changing the default setting[edit]
To modify the setting to this configuration parameter, 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]
- Help page on Authority mode
- Help page on Create protection
- Glossary page on Semantic gardening
- Help page on configuration parameter
$smwgAdminFeatures
Sets which administrative features may be used via special page "SemanticMediaWiki" for other user related permission settings
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2600