<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://beyondallreason.wiki/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://beyondallreason.wiki/index.php?action=history&amp;feed=atom&amp;title=Extension%3ACategoryLockdown"/>
	<link rel="alternate" type="text/html" href="https://beyondallreason.wiki/index.php?title=Extension:CategoryLockdown&amp;action=history"/>
	<updated>2026-11-22T14:09:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://beyondallreason.wiki/index.php?title=Extension:CategoryLockdown&amp;diff=125&amp;oldid=prev</id>
		<title>ACidfaCe: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://beyondallreason.wiki/index.php?title=Extension:CategoryLockdown&amp;diff=125&amp;oldid=prev"/>
		<updated>2024-02-09T14:02:53Z</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-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:02, 9 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff:1.41:old-124:rev-125 --&gt;
&lt;/table&gt;</summary>
		<author><name>ACidfaCe</name></author>
	</entry>
	<entry>
		<id>https://beyondallreason.wiki/index.php?title=Extension:CategoryLockdown&amp;diff=124&amp;oldid=prev</id>
		<title>mw&gt;Dantman: Reverted edits by 2601:8A:4082:6D80:ADE5:ED29:2520:6318 (talk) to last version by Sophivorus</title>
		<link rel="alternate" type="text/html" href="https://beyondallreason.wiki/index.php?title=Extension:CategoryLockdown&amp;diff=124&amp;oldid=prev"/>
		<updated>2023-02-14T00:16:15Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/2601:8A:4082:6D80:ADE5:ED29:2520:6318&quot; title=&quot;Special:Contributions/2601:8A:4082:6D80:ADE5:ED29:2520:6318&quot;&gt;2601:8A:4082:6D80:ADE5:ED29:2520:6318&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:2601:8A:4082:6D80:ADE5:ED29:2520:6318&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:2601:8A:4082:6D80:ADE5:ED29:2520:6318 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last version by Sophivorus&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 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.&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;
* 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;
&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>mw&gt;Dantman</name></author>
	</entry>
</feed>