dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7331bc4
)
Merge "Avoid master queries on GET in ProtectionForm"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 10 May 2016 13:19:44 +0000
(13:19 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 10 May 2016 13:19:44 +0000
(13:19 +0000)
includes/ProtectionForm.php
patch
|
blob
|
history
diff --git
a/includes/ProtectionForm.php
b/includes/ProtectionForm.php
index
70192b9
..
451635e
100644
(file)
--- 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() ];