Implement dazeus::PostgreSQLDatabase::hasPermission properly.