Privilege APIsedit

See Has Privileges API.