[roleInheritance] Set isInheritedAccessEnabled as private method
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 01 Oct 2015 17:36:30 +0200
changeset 27791 1df63ea7bcac
parent 27790 74ee8fbfd426
child 27792 351aef92b95d
[roleInheritance] Set isInheritedAccessEnabled as private method
src-db/database/model/tables/AD_ROLE.xml
src/org/openbravo/roleInheritance/InheritedAccessEnabledEventHandler.java
--- a/src-db/database/model/tables/AD_ROLE.xml	Thu Oct 01 17:27:08 2015 +0200
+++ b/src-db/database/model/tables/AD_ROLE.xml	Thu Oct 01 17:36:30 2015 +0200
@@ -126,6 +126,7 @@
       <check name="AD_ROLE_ISCLIENTADMIN_CHECK"><![CDATA[IS_CLIENT_ADMIN IN ('Y', 'N')]]></check>
       <check name="AD_ROLE_ISPORTAL_CHECK"><![CDATA[ISPORTAL IN ('Y', 'N')]]></check>
       <check name="AD_ROLE_ISPORTALADMIN_CHECK"><![CDATA[ISPORTALADMIN IN ('Y', 'N')]]></check>
+      <check name="AD_ROLE_ISTEMPLATE_CHECK"><![CDATA[ISTEMPLATE IN ('Y', 'N')]]></check>
       <check name="AD_ROLE_ISWEBSERVICEENABLED"><![CDATA[ISWEBSERVICEENABLED IN ('Y', 'N')]]></check>
       <check name="AD_ROLE_MANUALTEMPLATE_CHECK"><![CDATA[ISTEMPLATE = 'Y' AND ISMANUAL = 'Y' OR ISTEMPLATE <> 'Y']]></check>
       <check name="AD_ROLE_RESTRICTBACKEND"><![CDATA[ISRESTRICTBACKEND IN ('Y', 'N')]]></check>
--- a/src/org/openbravo/roleInheritance/InheritedAccessEnabledEventHandler.java	Thu Oct 01 17:27:08 2015 +0200
+++ b/src/org/openbravo/roleInheritance/InheritedAccessEnabledEventHandler.java	Thu Oct 01 17:36:30 2015 +0200
@@ -104,7 +104,7 @@
     }
   }
 
-  protected boolean isInheritedAccessEnabled(EntityPersistenceEvent event) {
+  private boolean isInheritedAccessEnabled(EntityPersistenceEvent event) {
     // Disable event handlers if data is being imported
     if (TriggerHandler.getInstance().isDisabled()) {
       return false;