[03:42:45] hello [03:42:47] I have set these settings [03:42:48] $wgGroupPermissions['']['edit'] = false; [03:42:49] $wgGroupPermissions['']['createpage'] = false; [03:42:49] $wgGroupPermissions['user']['edit'] = false; [03:42:50] $wgGroupPermissions['user']['createpage'] = false; [03:42:50] $wgGroupPermissions['writer']['edit'] = true; [03:42:51] $wgGroupPermissions['writer']['createpage'] = true; [03:42:55] But I would like registered users to be able to edit the Discussion pages [03:42:58] How would I do taht? [03:44:20] I tried $wgGroupPermissions['user']['createtalk'] = true; but it didn't work [03:46:59] qomp: there's a separate config setting [03:46:59] where is that managed? [03:46:59] one sec [03:46:59] It seems these make each other redundant in a way [03:46:59] $wgGroupPermissions['user']['edit'] = false; [03:46:59] qomp: you can set this up with https://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection . set the namespace protection for all article pages to 'writer', and to talk pages to nothing [03:46:59] $wgGroupPermissions['user']['createpage'] = false; [03:46:59] $wgGroupPermissions['user']['createtalk'] = true; [03:46:59] damn this shit is confusing [03:47:15] Any chance you know what I'm adding ? [03:48:23] Basically writers can make articles, edit and talk on Discussion [03:48:28] And all other users can only talk in discussion [03:48:32] is what I'm trying to achieve [03:51:51] I can't make sense of this particular guide [03:58:07] woo, caught a bug the day of the train [03:58:17] https://phabricator.wikimedia.org/T327467 [04:03:06] a jump bug? [04:03:28] fleas jump so high [04:03:37] like, 300 or 400 times their body height [04:04:53] MatmaRex any chance you know what I need to add? [04:04:58] I can't figure it out from that link [04:05:33] qomp: sorry, i can't help right now [04:05:42] ok ty anyway [04:31:50] Anyone used this? [04:31:52] https://www.mediawiki.org/wiki/Extension:DiscussionTools [04:32:02] I installed it and added code to localsettings and it just makes the entire website a blank white page [04:50:31] it's live on Wikimedia wikis, so, yes? :) [04:51:29] koolies [04:56:30] I installed the extension [04:56:34] and also Lint which is apparently needed [04:56:37] I ran the update [04:56:40] and the site is a blank page [04:56:53] I set a timezone [04:56:55] and added $wgFragmentMode = ['html5']; [04:56:55] wfLoadExtension( 'Linter' ); [04:56:56] wfLoadExtension( 'DiscussionTools' ); [04:57:00] Still borked [04:57:04] What do? [04:57:54] wtf [04:57:55] An error occurred: [04:57:55] DiscussionTools requires VisualEditor to be installed. [04:58:00] The guide said this comes installed with mediawiki [04:58:01] apparently not [04:58:05] yawn [04:58:35] Download [04:58:36] For the General User [04:58:36] You do not need to download the extension because it comes with the MediaWiki tarball. [04:58:37] Where can I get this? [04:59:58] never mind [05:01:09] i did it fam [05:02:07] Last thing I can't figure out is letting users edit Discussion page but not main pages [05:15:11] The author's explanation of what to add to localsettings is terrible [05:15:12] nothing works [05:20:57] is there a line for something like this [05:20:58] $wgGroupPermissions['user']['editpage'] = false; [05:21:01] so they can't edit pages [05:21:15] but can create/edit discussion pages [05:21:16] $wgGroupPermissions['user']['talk'] = true; [05:21:41] That's all I want [05:46:51] Any thoughts Izno [06:00:47] dc'd [07:15:48] Any assistance would be wildly appreciated [09:21:10] Anyone know how to allow editing Discussion pages but not normal pages? [09:22:49] qomp: usually by setting namespace user right restrictions [09:25:06] !wg NamespaceProtection [09:25:06] https://www.mediawiki.org/wiki/Manual:%24wgNamespaceProtection [09:25:21] qomp: ^ my suggestion would be to use $wgNamespaceProtection [09:34:51] taavi: thanks, I was thinking of the same thing but didn't remember the name [15:12:59] dat zijn bosmuizen! [15:13:03] oops [19:30:57] is there something that says what re syntax readwhitelistreqex uses? [19:31:21] Lycurgus: It would use PCRE syntax [19:31:33] bawolff, ty [19:33:31] Anyone security minded able to discuss something over PM? [19:33:44] I’m literally scratching my head and I can’t work something out [19:34:00] uh oh, thats scary :P [19:34:09] peer: [19:34:12] RhinosF1: you can pm me if you want [19:34:14] Hopefully not [19:34:20] agreed [19:35:02] RhinosF1: did you find someone already? [19:35:17] Sending bawolff a pm taavi [19:41:51] $wgWhitelistReadRegexp wont work with a negated pattern i take it [19:43:09] what are you trying to do? [19:44:13] use a negated pattern with $wgWhitelistReadRegex [19:44:29] pattern = regex [19:45:17] yes, but why do you want to do that? [19:45:24] this feels like an XY problem [19:45:42] to exclude read access to pages matching the regex [19:46:24] ur feels r noted [19:48:25] that might work but it's going to have unexpected side expect as mediawiki tries to block information from non-whitelisted pages from leaking [19:48:32] or in case boolean logic is an XY problem for you, exclude read access to pages that don't match the regex [19:48:50] effect i take it [19:50:44] https://www.mediawiki.org/wiki/Extension:Lockdown is the go-to for per-page access restrictions these days I think. trying to use $wgWhitelistReadRegexp for anything else than like having a main page be public is bound to cause problems sooner or later [19:51:04] ok [19:51:06] since I feel it wouldn't block various special pages from leaking the page details [19:51:07] ty [19:53:15] Lycurgus: Just be very careful if you want public editing of any pages [19:53:34] And some special pages definitely cannot be public. e.g. Special:ExpandTemplates [19:54:12] Since once you can edit, there is often ways to bypass read restrictions unless you are very careful [19:54:48] Beyond that, i don't think i see a problem with a negated regex (negated means negative lookahead assertion or something like that?). I definietly still suggest blocking the entire Special: namespace just in case [19:56:26] bawolff, no i don't allow public edits [23:35:20] mediawiki "php update.php" fails with this error https://privatebin.net/?a983efc3e558c872#2epmZQ7ffStDAYJywWrwsHVUutXwsYP9Dc984Rp3b693 [23:35:38] What going wrong? [23:49:50] Hmm the webbased updated did finish without errors.