use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateTriggerDataMember.
/**
* update the Component Data Member default access type
* @param triggerDataMember
* @throws SecurityException
*/
public void updateTriggerDataMember(Boolean triggerDataMember) throws SecurityException {
checkWriteAccess();
boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
if (!hasAccess)
throw new SecurityException("no access to update trigger-data-member");
Element scope = _getRootElement("component");
scope.setAttribute("trigger-data-member", Caster.toString(triggerDataMember, ""));
}
Aggregations