const FOR_THIS_USER = 2;
const RAW = 3;
- /** @var string Wiki ID; false means the current wiki */
+ /** @var string|false Wiki ID; false means the current wiki */
protected $mWiki = false;
/** @var int|null */
protected $mId;
/** @var CommentStoreComment|null */
protected $mComment;
- /** @var Title */
+ /** @var Title */
protected $mTitle; // TODO: we only need the title for permission checks!
/** @var RevisionSlots */
$text = $title->getPrefixedText();
wfDebug( "Checking for $permissionlist on $text due to $field match on $bitfield\n" );
- $permissionManager = MediaWikiServices::getInstance()->getPermissionManager();
-
foreach ( $permissions as $perm ) {
if ( $permissionManager->userCan( $perm, $user, $title ) ) {
return true;