Fix permission check on protection log
authorAmmar <ammarpad@yahoo.com>
Fri, 27 Sep 2019 13:39:15 +0000 (14:39 +0100)
committerPetr Pchelko <ppchelko@wikimedia.org>
Fri, 27 Sep 2019 16:58:41 +0000 (09:58 -0700)
commit1d59041fc86195feaca29d6d263f440a6f17d9b3
treebc3b79c5e4331b7b429f984d45258004625788a7
parent825d66bfa44c5dae2b78e2fe4f3b16f16aff4a12
Fix permission check on protection log

*I2341e6f inverted the permission check, such that now the link is only shown to unprivileged users

Bug: T234017
Change-Id: I0977f1ab1a72840303aeca2367a30546d83117d4
includes/logging/ProtectLogFormatter.php
tests/phpunit/includes/logging/ProtectLogFormatterTest.php