Difference between revisions of "17"
From MyWiki
Line 4: | Line 4: | ||
'''# Disable anonymous editing''' | '''# Disable anonymous editing''' | ||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
− | '''# Prevent new user registrations except by sysops | + | '''# Prevent new user registrations except by sysops''' |
$wgGroupPermissions['*']['createaccount'] = false; | $wgGroupPermissions['*']['createaccount'] = false; | ||
− | # Disable reading by anonymous users | + | '''# Disable reading by anonymous users''''''Bold text''' |
$wgGroupPermissions['*']['read'] = false; | $wgGroupPermissions['*']['read'] = false; | ||
# But allow them to read e.g., these pages: | # But allow them to read e.g., these pages: |
Revision as of 00:29, 17 May 2014
Configured security using :
############# More stuff to restrict access
# Disable anonymous editing $wgGroupPermissions['*']['edit'] = false; # Prevent new user registrations except by sysops $wgGroupPermissions['*']['createaccount'] = false; # Disable reading by anonymous users'Bold text' $wgGroupPermissions['*']['read'] = false; # But allow them to read e.g., these pages: $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "-"); $wgGroupPermissions['user']['edit'] = false; ##disables geroge2 as well from editing # Start with assigning the default permissions from group "user" $wgGroupPermissions['Writer'] = $wgGroupPermissions['user']; # Now modify these rights: $wgGroupPermissions['Trustworthy']['read'] = true; $wgGroupPermissions['Writer']['edit'] = true; #$wgGroupPermissions['Trustworthy']['protect'] = true; #$wgGroupPermissions['Trustworthy']['patrol'] = true; #$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page