Skip to content

Commit 813ee95

Browse files
committed
fix: fallback to read access in /sign
1 parent fa4bef8 commit 813ee95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/routers/sign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ module.exports = eggspress('/sign', {
117117

118118
if ( item.action === 'write' ) {
119119
if ( ! await svc_acl.check(actor, node, 'write') ) {
120-
throw await svc_acl.get_safe_acl_error(actor, node, 'write');
120+
item.action = 'read';
121121
}
122122
}
123123

0 commit comments

Comments
 (0)