added method to check module authorization