@opengis/fastify-table 1.4.16 → 1.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -201,7 +201,7 @@ export default async function dataAPI(req, reply, called) {
|
|
|
201
201
|
throw new Error(err.toString());
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
if (!rows.length && headers?.referer?.includes?.('/card/')) {
|
|
204
|
+
if (!rows.length && headers?.referer?.includes?.('/card/') && headers?.referer?.includes?.(tokenData?.table || hookData?.table || params.table)) {
|
|
205
205
|
return reply.status(403).send('access restricted: empty rows');
|
|
206
206
|
}
|
|
207
207
|
|