The sheriff, justices of the peace, or magistrates may in all cases, notwithstanding their being members of the local authority, exercise the jurisdiction vested in them under this Act.