X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=451635e319dde1ed68e557d92261d2ec40488c3c;hb=05ab20fcc6a65357102246a7517e18eb9ada9a62;hp=70192b9c2b10e5e84d72ef2d321ee71ed43dd72c;hpb=a85d1b9d0cd7f02111d3a647d5b91e3b1f334563;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 70192b9c2b..451635e319 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -70,7 +70,9 @@ class ProtectionForm { // Check if the form should be disabled. // If it is, the form will be available in read-only to show levels. $this->mPermErrors = $this->mTitle->getUserPermissionsErrors( - 'protect', $this->mContext->getUser() + 'protect', + $this->mContext->getUser(), + $this->mContext->getRequest()->wasPosted() ? 'secure' : 'full' // T92357 ); if ( wfReadOnly() ) { $this->mPermErrors[] = [ 'readonlytext', wfReadOnlyReason() ];