protected function afterCreate() {
	
		// unset the other defaults
		$this->unsetSiblingsDefaults();

		// get the rule_id of default module
		$defaultRuleId = $this->getDefaultModule();

		if ($defaultRuleId) {

			// create first ACL with rule_id of default module
			$acl			= new Acl();
			$acl->ruleId	= $defaultRuleId;
			$acl->groupId   = $this->id;
			$acl->default	= TRUE;
	
			$acl->create();
			
		}

	}
protected function afterCreate() {
	
		// unset the other defaults
		$this->unsetSiblingsDefaults();

		// get the rule_id of default module
		$defaultRuleId = $this->getDefaultModule();

		if ($defaultRuleId) {

			// create first ACL with rule_id of default module
			$acl			= new Acl();
			$acl->ruleId	= $defaultRuleId;
			$acl->groupId   = $this->id;
			$acl->default	= TRUE;
	
			$acl->create();
			
		}

	}
protected function afterCreate ( ) { // unset the other defaults $ this -> unsetSiblingsDefaults ( ) ; // get the rule_id of default module $ defaultRuleId = $ this -> getDefaultModule ( ) ; if ( $ defaultRuleId ) { // create first ACL with rule_id of default module $ acl = new Acl ( ) ; $ acl -> ruleId = $ defaultRuleId ; $ acl -> groupId = $ this -> id ; $ acl -> default = TRUE ; $ acl -> create ( ) ; } }
If default is TRUE, will set other groups to zero. Insert default Module as
ACL default module when create a Group.
If default is TRUE will set other groups to zero . Insert default Module as ACL default module when create a Group .