Fix bug #8873 - self granting privileges in security=ads.