Help:Configuration parameter "$smwgEditProtectionRight"

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


Title $smwgEditProtectionRight
Description Sets the user right required to edit pages which are edit protected with special property "Is edit protected"
Default setting
false
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Installation
Keyword page protection · data curation

$smwgEditProtectionRight is a configuration parameter that sets the user right required to edit pages which are edit protected with special property "Is edit protected"Stores the status of an edit restriction of a page. If no user right is added to this configuration parameter the edit protection feature utilizing special property "Is edit protected"Stores the status of an edit restriction of a page cannot used on the wiki. The parameter was introduced in Semantic MediaWiki 2.5.0.12

This configuration parameter helps to prevent accidental changes of content especially to property definitions or other data sensitive pages that may cause data invalidations (e.g. change of a property type, inconsistent specifications etc.) or process disruptions. See the help page on edit protection for further information.

Default setting

$smwgEditProtectionRight = false;

The default setting prevents the edit protection feature using special property "Is edit protected"Stores the status of an edit restriction of a page from being used on the wiki.

Changing the default setting

Changing the default value by adding any user right to this configuration parameter enables the usage of the edit protection feature utilizing special property "Is edit protected"Stores the status of an edit restriction of a page.

Enable the edit protection and allow users with the "smw-pageedit" right to edit protected pages
$smwgEditProtectionRight = "smw-pageedit";
NoteNote:
  • The "smw-pageedit" user right is provided by default by Semantic MediaWiki and is only assigned to user group "Curator (Semantic Mediawiki)" (smwcurator). It is recommended to use this user right and user group combination.
  • The user right added here should only be granted to trusted users that are proficient in working with properties.
  • Any other user right including self-defined user rights may be added to this configuration parameter. Please carefully revisit the user group assignments to the user right added to avoid unintentionally allowing users to edit protected pages which should not be allowed to do so.

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2232
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2249