<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>https://covtlepedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Extension%3ACategoryLockdown</id>
	<title>Extension:CategoryLockdown - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://covtlepedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Extension%3ACategoryLockdown"/>
	<link rel="alternate" type="text/html" href="https://covtlepedia.org/w/index.php?title=Extension:CategoryLockdown&amp;action=history"/>
	<updated>2026-04-04T02:39:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://covtlepedia.org/w/index.php?title=Extension:CategoryLockdown&amp;diff=575&amp;oldid=prev</id>
		<title>Johanna: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://covtlepedia.org/w/index.php?title=Extension:CategoryLockdown&amp;diff=575&amp;oldid=prev"/>
		<updated>2025-10-10T14:20:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-CA&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:20, 10 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-CA&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Johanna</name></author>
	</entry>
	<entry>
		<id>https://covtlepedia.org/w/index.php?title=Extension:CategoryLockdown&amp;diff=574&amp;oldid=prev</id>
		<title>MediaWiki&gt;Sophivorus: Important first</title>
		<link rel="alternate" type="text/html" href="https://covtlepedia.org/w/index.php?title=Extension:CategoryLockdown&amp;diff=574&amp;oldid=prev"/>
		<updated>2025-02-11T14:28:13Z</updated>

		<summary type="html">&lt;p&gt;Important first&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Page security extension disclaimer}}&lt;br /&gt;
&lt;br /&gt;
{{Extension&lt;br /&gt;
| status = stable&lt;br /&gt;
| type = user rights&lt;br /&gt;
| description = Restrict permissions by category and group&lt;br /&gt;
| username = Sophivorus&lt;br /&gt;
| update = 2021-12-13&lt;br /&gt;
| download = {{WikimediaDownload}}&lt;br /&gt;
| needs-updatephp = No&lt;br /&gt;
| example = [https://www.appropedia.org/Category:Medical_Makers_Private]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;CategoryLockdown&amp;#039;&amp;#039;&amp;#039; extension allows admins to restrict permissions by category and group.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
{{ExtensionInstall&lt;br /&gt;
| registration = required&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
To restrict the &amp;#039;read&amp;#039; permission of the Category:Maintenance and its pages to the &amp;#039;sysop&amp;#039; group only (admins), add the following to your LocalSettings.php:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Maintenance&amp;#039;][&amp;#039;read&amp;#039;] = &amp;#039;sysop&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Similarly, to restrict the &amp;#039;edit&amp;#039; permission of the Category:Sales and its pages to the &amp;#039;vendor&amp;#039; group:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Sales&amp;#039;][&amp;#039;edit&amp;#039;] = &amp;#039;vendor&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To restrict editing to users in the &amp;#039;vendor&amp;#039; OR &amp;#039;manager&amp;#039; groups:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Sales&amp;#039;][&amp;#039;edit&amp;#039;] = [ &amp;#039;vendor&amp;#039;, &amp;#039;manager&amp;#039; ];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that pages in subcategories are not affected. If Category:Clients is a subcategory of Category:Sales, then pages within it won&amp;#039;t be protected by the above setting. You&amp;#039;d need to add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Clients&amp;#039;][&amp;#039;edit&amp;#039;] = [ &amp;#039;vendor&amp;#039;, &amp;#039;manager&amp;#039; ];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also note that if a page is in BOTH the Category:Sales and the Category:Clients, then the following will restrict editing to users in the &amp;#039;vendor&amp;#039; OR &amp;#039;manager&amp;#039; groups:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Sales&amp;#039;][&amp;#039;edit&amp;#039;] = &amp;#039;vendor&amp;#039;,&lt;br /&gt;
$wgCategoryLockdown[&amp;#039;Clients&amp;#039;][&amp;#039;edit&amp;#039;] = &amp;#039;manager&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, note that:&lt;br /&gt;
&lt;br /&gt;
* Rules don&amp;#039;t apply to admins (users in the &amp;#039;sysop&amp;#039; group).&lt;br /&gt;
* This extension only removes permissions, it doesn&amp;#039;t grant them. If the general config of your wiki forbids editing to all users, then adding a rule that restricts editing to a certain group won&amp;#039;t work. Instead, allow editing to all users and then use this extension to restrict editing to the desired group.&lt;br /&gt;
* You can use this syntax to restrict any permission (not just &amp;#039;read&amp;#039; and &amp;#039;edit&amp;#039;). However, if users are allowed to read and edit a page, then they can avoid other restrictions by re-categorizing the page.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Extension:Lockdown]] - More sophisticated but cannot restrict access by category and group&lt;br /&gt;
* [[Extension:Restrict access by category and group]] - Similar idea but more complicated and unmaintained&lt;/div&gt;</summary>
		<author><name>MediaWiki&gt;Sophivorus</name></author>
	</entry>
</feed>