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...") |
|||
(5 intermediate revisions by the same user not shown) | |||
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''' |
− | + | $wgGroupPermissions['*']['read'] = false; | |
− | # Disable reading by anonymous users | + | '''# But allow them to read e.g., these pages:''' |
− | $wgGroupPermissions['*']['read'] = false; | + | $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "-"); |
− | + | $wgGroupPermissions['user']['edit'] = false; ##disables geroge2 as well from editing | |
− | # But allow them to read e.g., these pages: | + | '''# Start with assigning the default permissions from group "user"''' |
− | $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "-"); | + | $wgGroupPermissions['Writer'] = $wgGroupPermissions['user']; |
− | + | '''# Now modify these rights:''' | |
− | $wgGroupPermissions['user']['edit'] = false; ##disables geroge2 as well from editing | + | $wgGroupPermissions['Trustworthy']['read'] = true; |
− | # Start with assigning the default permissions from group "user" | + | $wgGroupPermissions['Writer']['edit'] = true; |
− | $wgGroupPermissions['Writer'] = $wgGroupPermissions['user']; | + | '''#$wgGroupPermissions['Trustworthy']['protect'] = true;''' |
− | # Now modify these rights: | + | '''#$wgGroupPermissions['Trustworthy']['patrol'] = true;''' |
− | $wgGroupPermissions['Trustworthy']['read'] = true; | + | '''#$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page''' |
− | $wgGroupPermissions['Writer']['edit'] = true; | + | |
− | #$wgGroupPermissions['Trustworthy']['protect'] = true; | + | |
− | #$wgGroupPermissions['Trustworthy']['patrol'] = true; | + | |
− | #$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page | + |
Latest revision as of 00:30, 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