change site to current only if allowed

otherwise change to the first allowed site
Merge pull request #27 from pbs/LUN-1649

LUN-1649 change site to current only if allowed