Help:Configuration parameter "$smwgAdminFeatures"

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


Title $smwgAdminFeatures
Description Sets which administrative features may be used via special page "SemanticMediaWiki"
Default setting See below
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Installation
Keyword special page · administration · gardening · setup · store setup · data repair · data rebuild · object-id lookup · object-id disposal

$smwgAdminFeatures is a configuration parameter that sets which administrative features may be used via special page special page "SemanticMediaWiki" allowing fine grained control. The setting was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x.1 and deprecated the configuration parameter $smwgAdminRefreshStoreSets whether it is possible to set up the database tables or to initiate the repairing or updating of all semantic data of wiki using the interface on special page "SemanticMediaWiki" which should be migrated to this configuration setting since it will be removed with the release of Semantic MediaWiki 3.1.0Released on an unknown date and compatible with unknown versions of MediaWiki. in late 2018.2

Default setting

$smwgAdminFeatures = SMW_ADM_REFRESH | SMW_ADM_SETUP | SMW_ADM_DISPOSAL | SMW_ADM_PSTATS | SMW_ADM_FULLT;

This means that by default all users who are administrators (user group "sysop") or Semantic MediaWiki administrators (user group "smwadministrator") may use all features available.

Available options

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Removing a specific administrative function

To remove a specific administrative function e.g. the ability to initiate the repairing or updating of all semantic data on the wiki, just exclude the respective constant as shown just above:

$smwgAdminFeatures = SMW_ADM_SETUP | SMW_ADM_DISPOSAL | SMW_ADM_PSTATS | SMW_ADM_FULLT;

or

$smwgAdminFeatures = $smwgAdminFeatures & ~SMW_ADM_REFRESH;
Removing all administrative functions

To remove all administrative features just remove all constants as shown above:

$smwgAdminFeatures = '';

Preventing access to special page "SemanticMediaWiki"Provides functions for wiki administrators that assist in doing their administration work

To achieve this the user right "smw-admin" has to removed from the wiki administrators (user group "sysop") and additionally no user should be assigned to be a Semantic MediaWiki administrator (user group "smwadministrator"). This will additionally prevent the display of operational statistics and of configuration settings.

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2142
  2. ^  Semantic MediaWiki: GitHub issue gh:smw:2343