Bug 20128: (QA follow-up) Corrections to haspermission