fix: fallback to read access in /sign

This commit is contained in:
KernelDeimos 2024-08-27 23:23:38 -04:00
parent d1d0a9cccc
commit 35273f41f2

View File

@ -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';
}
}