From 35273f41f244766e98a14536a0c68a3c574ccb23 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 27 Aug 2024 23:23:38 -0400 Subject: [PATCH] fix: fallback to read access in /sign --- src/backend/src/routers/sign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/routers/sign.js b/src/backend/src/routers/sign.js index 4a1379a5..1813d098 100644 --- a/src/backend/src/routers/sign.js +++ b/src/backend/src/routers/sign.js @@ -117,7 +117,7 @@ module.exports = eggspress('/sign', { if ( item.action === 'write' ) { if ( ! await svc_acl.check(actor, node, 'write') ) { - throw await svc_acl.get_safe_acl_error(actor, node, 'write'); + item.action = 'read'; } }