Jsahleen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/184487
Change subject: Documentation: Adding documentation to Translator.php
......................................................................
Documentation: Adding documentation to Translator.php
* Adds comment to line 9 about use of GlobalUser:newFromUser
* Recommended as part of security review
Bug: T86586
Change-Id: Ic7c2962eec7df0147ef3b4eaad7ddff2cc08381c
---
M includes/Translator.php
1 file changed, 1 insertion(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/87/184487/1
diff --git a/includes/Translator.php b/includes/Translator.php
index 61439f5..499c057 100644
--- a/includes/Translator.php
+++ b/includes/Translator.php
@@ -6,6 +6,7 @@
class Translator {
function __construct( \User $user ) {
+ // GlobalUser::newFromUser must be used so CentralAuth checks
are done
$this->globalUser = GlobalUser::newFromUser( $user );
}
--
To view, visit https://gerrit.wikimedia.org/r/184487
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7c2962eec7df0147ef3b4eaad7ddff2cc08381c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Jsahleen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits