public function resolveSecureAttributesChanged()
 {
     $secureAttributeChanged = $this->owner->isNewRecord ? 0 !== intval($this->owner->getAttribute($this->secureAttribute)) : $this->owner->isAttributeChanged($this->secureAttribute);
     $secureItemAttributeChanged = $this->owner->isAttributeChanged($this->secureItemAttribute);
     $secureAccessRolesChanged = $this->isSecureAccessRolesChanged();
     $this->secureAttributesChanged = [$secureAttributeChanged, $secureItemAttributeChanged, $secureAccessRolesChanged];
     Yii::info('Resolve secure attributes changed result: ' . PHP_EOL . VarDumper::dumpAsString($this->secureAttributesChanged), __METHOD__);
     if ($secureAttributeChanged || $secureItemAttributeChanged) {
         $this->ensureSecureAccess();
     }
 }
 /**
  * @inheritdoc
  */
 public function isSecureEnabled()
 {
     return ActiveRecord::isSecure() && $this->secureEnabled;
 }