PermissionManager: Fix missingPermissionError() not returning early when $short is true.

This regression was introduced in I6670a58fe1.

Bug: T399793
Co-Authored-By: Jonathan Lee <cookmeplox@weirdgloop.org>
Change-Id: I26b61e2a08b51aaca5d2740dcaf20b509be380eb
(cherry picked from commit fa05279424e0688a7b34f1186050dca1e2ec5f4b)
This commit is contained in:
TehKittyCat 2025-07-18 02:41:01 -04:00 committed by Bartosz Dziewoński
parent 330ef61cbe
commit 8728f29a32

View file

@ -699,6 +699,7 @@ class PermissionManager {
// We avoid expensive display logic for quickUserCan's and such
if ( $short ) {
$status->fatal( 'badaccess-group0' );
return;
}
// TODO: it would be a good idea to replace the method below with something else like