Merge pull request #232 from Tigerfell/master
authorGrant <git@firefishy.com>
Fri, 26 Apr 2019 21:42:51 +0000 (22:42 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2019 21:42:51 +0000 (22:42 +0100)
Allow sysops to modify interwiki table

cookbooks/mediawiki/resources/site.rb
cookbooks/mediawiki/templates/default/mw-ext-Interwiki.inc.php.erb [new file with mode: 0644]

index 381f7d3..430cba8 100644 (file)
@@ -262,6 +262,7 @@ action :create do
 
   mediawiki_extension "Interwiki" do
     site new_resource.site
+    template "mw-ext-Interwiki.inc.php.erb"
     update_site false
   end
 
diff --git a/cookbooks/mediawiki/templates/default/mw-ext-Interwiki.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-Interwiki.inc.php.erb
new file mode 100644 (file)
index 0000000..ba63a97
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+
+# allow sysops to modify interwiki table
+$wgGroupPermissions['sysop']['interwiki'] = true;