<commit_before>component accessors="true"{

	// ------------------------ DEPENDENCY INJECTION ------------------------ //

	property name="EnquiryService" setter="true" getter="false";
	property name="SecurityService" setter="true" getter="false";

	// ------------------------ PUBLIC METHODS ------------------------ //

	void function init( required any fw ){
		variables.fw = arguments.fw;
	}
	
	void function before( required struct rc ){
		rc.isallowed = variables.SecurityService.isAllowed( variables.fw.getFullyQualifiedAction() );
		if( !rc.isallowed ){
			variables.fw.redirect( "admin:security" );
		}else{
			rc.CurrentUser = variables.SecurityService.getCurrentUser();
			rc.unreadenquirycount = variables.EnquiryService.getUnreadCount();
		}
	}

}<commit_msg>security redirect<commit_after>component accessors="true"{

	// ------------------------ DEPENDENCY INJECTION ------------------------ //

	property name="EnquiryService" setter="true" getter="false";
	property name="SecurityService" setter="true" getter="false";

	// ------------------------ PUBLIC METHODS ------------------------ //

	void function init( required any fw ){
		variables.fw = arguments.fw;
	}
	
	void function before( required struct rc ){
		rc.isallowed = variables.SecurityService.isAllowed( variables.fw.getFullyQualifiedAction() );
		if( !rc.isallowed ){
			variables.fw.redirect( "security" );
		}else{
			rc.CurrentUser = variables.SecurityService.getCurrentUser();
			rc.unreadenquirycount = variables.EnquiryService.getUnreadCount();
		}
	}

}
{'fraction_non_alphanumeric': 0.23929961089494164, 'fraction_numerical': 0.0, 'mean_word_length': 2.588372093023256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1184144', 'n_tokens_mistral': 462, 'n_tokens_neox': 420, 'n_words': 81}