[sr-dev] git:hpw/branch_failure_route: modules/permissions: Updated to use the new get_branch()/next_branch() functions