2017-02-12

add

← Older revision

Revision as of 12:40, 12 February 2017

(7 intermediate revisions by the same user not shown)

Line 10:

Line 10:

|deprecatedwith=

|deprecatedwith=

}}

}}



<code>'''$smwgEditProtectionRight'''</code> is a [[Help:Configuration|configuration parameter]] that sets the user right required to edit pages which are edit protected with [[Help:Is edit protected|special property "Is edit protected"]]. If no [[Help:User rights and user groups#Editing pages edit protected with special property "Is edit protected"|user right]] is added to this configuration parameter the [[
Edit
protection]] feature utilizing [[Help:Special property Is edit protected|special property "Is edit protected"]] cannot used on the
respective
wiki. The parameter was introduced in [[Semantic MediaWiki 2.5.0]].[[CiteRef::gh:smw:2232]]

+

<code>'''$smwgEditProtectionRight'''</code> is a [[Help:Configuration|configuration parameter]] that sets the user right required to edit pages which are edit protected with [[Help:Is edit protected|special property "Is edit protected"]]. If no [[Help:User rights and user groups#Editing pages edit protected with special property "Is edit protected"|user right]] is added to this configuration parameter the [[
edit
protection]] feature utilizing [[Help:Special property Is edit protected|special property "Is edit protected"]] cannot used on the wiki. The parameter was introduced in [[Semantic MediaWiki 2.5.0]].[[CiteRef::gh:smw:2232
]][[CiteRef::gh:smw:2249
]]



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.

+

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 ==

== Default setting ==

Line 18:

Line 18:

$smwgEditProtectionRight = "false";

$smwgEditProtectionRight = "false";

</syntaxhighlight>

</syntaxhighlight>



The default setting prevents the [[
Edit
protection]] feature using [[Help:Special property Is edit protected|special property "Is edit protected"]] from being used.

+

The default setting prevents the [[
edit
protection]] feature using [[Help:Special property Is edit protected|special property "Is edit protected"]] from being used
on the wiki
.

== Changing the default setting ==

== Changing the default setting ==



Changing the default value by adding
a
[[Help:User rights and user groups#Editing pages edit protected with special property "Is edit protected"|user right]] to this configuration parameter enables the usage of the [[
Edit
protection]] feature utilizing [[Help:Special property Is edit protected|special property "Is edit protected"]].

+

Changing the default value by adding
any
[[Help:User rights and user groups#Editing pages edit protected with special property "Is edit protected"|user right]] to this configuration parameter
''
enables
''
the usage of the [[
edit
protection]] feature utilizing [[Help:Special property Is edit protected|special property "Is edit protected"]].



;
Allow  comparators

+

;
Enable the [[edit protection]] and allow users with the "<code>smw-pageedit</code>" right to edit protected pages

<syntaxhighlight lang="php" enclose="div">

<syntaxhighlight lang="php" enclose="div">

$smwgEditProtectionRight = "smw-pageedit";

$smwgEditProtectionRight = "smw-pageedit";

</syntaxhighlight>

</syntaxhighlight>



{{Note|
<br />

+

{{Note|



* The "<code>smw-pageedit</code>" is provided by default by Semantic MediaWiki and is only assigned to user group "Curator (Semantic Mediawiki)" (<code>smwcurator</code>). It is recommended to use this user right and user group.

+

* The "<code>smw-pageedit</code>"
user right
is provided by default by Semantic MediaWiki and is only assigned to user group "Curator (Semantic Mediawiki)" (<code>smwcurator</code>). It is recommended to use this
[[Help:User rights and user groups#Editing pages edit protected with special property "Is edit protected"|
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.

* 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.

* 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.

Show more