$smwgEditProtectionRight

From semantic-mediawiki.org


Configuration parameter details:
Name $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
Since version
Until version 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 be 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[edit]

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

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

References

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