Topic on Extension talk:Lockdown

Strange behavior with MW1.27

11
Summary by Kghbln

Fixed in the repo. Either clone latest REL_27 code or download the software from the extension distributor for the MW 1.27 branch. // Earlier versions of this exension's code will not work with MW 1.27+

5.29.75.205 (talkcontribs)

I recently updated MW to the latest commits (it was 1.27 from late 2015). Since than Lockdown is causing very strage permission behavior, apparently it does not recognize the different between logged users and anonymous users (i.e - logged-on sysop cannot edit MW namespace pages, logged users cannot edit etc.

Wess (talkcontribs)

Facing the same situation. Maybe there's a change in recent commits regarding user permissions?

Kghbln (talkcontribs)

I suspect that this is what I described in task T137051. To sum up: Lockdown is not compatible with MW 1.27 yet.

Aloist (talkcontribs)
Kghbln (talkcontribs)

No, unfortunately not.

Aloist (talkcontribs)

Is somebody going to fix it?

At the moment, when I want to mange user rights, I had to disable the Lockdown extension.

I need it however to protect some namespaces from public access,

Kghbln (talkcontribs)

Hopefully. I am not a coder so I cannot do it. Keeping fingers crossed.

Aloist (talkcontribs)

I think I have a fix.

Using the version from git master, file Lockdown.php dated 31-may-2016, I replaced

in function function lockdownSearchableNamespaces($arr) {

the line

//if ( $user->getId() === null && $user->getName() === null ) {

with

if ( $user->getId() === null || $user->getName() === null || $user->getName() == '' ) {

I do not claim to understand it, but it resolves the problem that the extension locks out users from editing, who normally have the permission to edit.

108.171.128.176 (talkcontribs)

im still seeing the problem that i cant add or edit permissions for users as a sysop, even after applying the change above :/

Kghbln (talkcontribs)

I have uploaded a patch set suggested by a user which at least restores functionality: gerrit. I dunno if it gets through though. The current status on this issue is however always visible on phabricator.

Kghbln (talkcontribs)