update_site false
end
+ mediawiki_extension "DisableAccount" do
+ site new_resource.name
+ template "mw-ext-DisableAccount.inc.php.erb"
+ update_site false
+ end
+
cookbook_file "#{site_directory}/cc-wiki.png" do
cookbook "mediawiki"
owner node[:mediawiki][:user]
--- /dev/null
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+require_once( $IP.'/extensions/DisableAccount/DisableAccount.php' );
+
+// Allow bureaucrats to disable users
+$wgGroupPermissions['bureaucrat']['disableaccount'] = true;