EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/94103
Change subject: Require core edit permission to create topic
......................................................................
Require core edit permission to create topic
Change-Id: I1c4445305483e7b3bdf8ab455d23abc3b924b43d
---
M includes/Block/TopicList.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/03/94103/1
diff --git a/includes/Block/TopicList.php b/includes/Block/TopicList.php
index 7285d3c..7821605 100644
--- a/includes/Block/TopicList.php
+++ b/includes/Block/TopicList.php
@@ -32,6 +32,10 @@
}
protected function validate() {
+ // @todo some sort of restriction along the lines of article
protection
+ if ( !$this->user->isAllowed( 'edit' ) ) {
+ $this->errors['permissions'] = wfMessage(
'flow-error-not-allowed' );
+ }
if ( !isset( $this->submitted['topic'] ) ) {
$this->errors['topic'] = wfMessage(
'flow-error-missing-title' );
}
--
To view, visit https://gerrit.wikimedia.org/r/94103
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c4445305483e7b3bdf8ab455d23abc3b924b43d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits