/** @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;