Add another checkPermAllowed method without a query object.