Errors in module ACLActions

Hi all! My ide PhpStorm shows errors in the code module ACLActions, for example:


	static function hasAccess($is_owner=false, $in_group=false, $access = 0){	
		/**
        if($access != 0 && $access == ACL_ALLOW_ALL || ($is_owner && $access == ACL_ALLOW_OWNER))return true;
       //if this exists, then this function is not static, so check the aclaccess parameter
        if(isset($this) && isset($this->aclaccess)){
            if($this->aclaccess == ACL_ALLOW_ALL || ($is_owner && $this->aclaccess == ACL_ALLOW_OWNER))
            return true;
        }
		*/
		if($access != 0 && ($access == ACL_ALLOW_ALL 
			|| ($is_owner && ($access == ACL_ALLOW_OWNER || $access == ACL_ALLOW_GROUP) )  //if owner that's better than in group so count it...better way to clean this up?
			|| ($in_group && $access == ACL_ALLOW_GROUP) //need to pass if in group with access somehow
		)) {
			return true;
		}
        if(isset($this) && isset($this->aclaccess)){
			if($this->aclaccess == ACL_ALLOW_ALL 
				|| ($is_owner && $this->aclaccess == ($access == ACL_ALLOW_OWNER || $access == ACL_ALLOW_GROUP))
				|| ($in_group && $access == ACL_ALLOW_GROUP) //need to pass if in group with access somehow
			) {
            	return true;
        	}
		}
        return false;
    }

Static function, but $this?

Thanks for the help!

Hi,

Are you actually experiencing issues with your CRM?

Thanks,

Will.