66 if ( $this->newContentModel === $this->title->getContentModel() ) {
68 $this->result = self::CONSTRAINT_PASSED;
69 return self::CONSTRAINT_PASSED;
72 if ( !$this->performer->isAllowed(
'editcontentmodel' ) ) {
73 $this->result = self::CONSTRAINT_FAILED;
74 return self::CONSTRAINT_FAILED;
81 $canEditModel = $this->performer->authorizeWrite(
83 $titleWithNewContentModel
88 || !$this->performer->authorizeWrite(
'edit', $titleWithNewContentModel )
90 $this->result = self::CONSTRAINT_FAILED;
91 return self::CONSTRAINT_FAILED;
94 $this->result = self::CONSTRAINT_PASSED;
95 return self::CONSTRAINT_PASSED;