Now checks access in array allowedIDs.