Difference between revisions of "17"
From MyWiki
(Created page with "Configured security using : ############# More stuff to restrict access # Disable anonymous editing $wgGroupPermissions['*']['edit'] = false; # Prevent new user registratio...") |
|||
Line 1: | Line 1: | ||
Configured security using : | Configured security using : | ||
− | ############# More stuff to restrict access | + | ############# More stuff to restrict access |
− | # 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 |
− | $wgGroupPermissions['*']['read'] = false; | + | $wgGroupPermissions['*']['read'] = false; |
− | # But allow them to read e.g., these pages: | + | # But allow them to read e.g., these pages: |
− | $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "-"); | + | $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "-"); |
− | $wgGroupPermissions['user']['edit'] = false; ##disables geroge2 as well from editing | + | $wgGroupPermissions['user']['edit'] = false; ##disables geroge2 as well from editing |
− | # Start with assigning the default permissions from group "user" | + | # Start with assigning the default permissions from group "user" |
− | $wgGroupPermissions['Writer'] = $wgGroupPermissions['user']; | + | $wgGroupPermissions['Writer'] = $wgGroupPermissions['user']; |
− | # Now modify these rights: | + | # Now modify these rights: |
− | $wgGroupPermissions['Trustworthy']['read'] = true; | + | $wgGroupPermissions['Trustworthy']['read'] = true; |
− | $wgGroupPermissions['Writer']['edit'] = true; | + | $wgGroupPermissions['Writer']['edit'] = true; |
− | #$wgGroupPermissions['Trustworthy']['protect'] = true; | + | #$wgGroupPermissions['Trustworthy']['protect'] = true; |
− | #$wgGroupPermissions['Trustworthy']['patrol'] = true; | + | #$wgGroupPermissions['Trustworthy']['patrol'] = true; |
− | #$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page | + | #$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page |
Revision as of 00:27, 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 $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