﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6085	Problem with licensed models	Niklas Worschech	Adeel Asghar	"If you open a licensed library with OMEdit, you can also read subpackages for a licensed feature for which you are not authorized.

For the following example, you can also open the {{{SubLibrary}}} subpackage, even if you only have access to the feature {{{test_licensed_feature}}}.

{{{


package LicenseOptionTest ""License Features""
  model Component1
    extends LicenseOptionTest.Internal.InternalComponent1;
    Real a = 1;
    
  end Component1;

  model Component2
    extends LicenseOptionTest.Internal.InternalComponent2;
    Real b = 1;
  end Component2;

  package Internal
    model InternalComponent1
      Real internalA = 1;
    end InternalComponent1;

    model InternalComponent2
      Real internalB = 2;
    
    end InternalComponent2;
      
  end Internal;

  package SubLibrary
    model SubComponent1
    
    end SubComponent1;
    annotation (
      Protection(
        access = Access.nonPackageDuplicate,
        features={""test_licensed_feature2""},
        ));
  end SubLibrary;
  annotation (
      Protection(
        access = Access.nonPackageDuplicate,
        features={""test_licensed_feature""},
        ));

end LicenseOptionTest;



}}}"	defect	new	blocker	1.17.0	OMEncryption			Modelica licensing	
