BAC-885: fixed privileges check in Phalanx