示例#1
0
 protected function afterSave()
 {
     if ((isset($this->originalAttributeValues['group']) || $this->isNewModel) && $this->group != null && $this->group->id > 0) {
         AllPermissionsOptimizationUtil::groupAddedToGroup($this);
         ReadPermissionsSubscriptionUtil::groupParentHasChanged();
     }
     if (isset($this->originalAttributeValues['group']) && $this->originalAttributeValues['group'][1] > 0) {
         $this->forgetPermissionsRightsAndPoliciesCache();
     }
     parent::afterSave();
 }