mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 06:00:21 +08:00
fix: fallback to read access in /sign
This commit is contained in:
parent
d1d0a9cccc
commit
35273f41f2
@ -117,7 +117,7 @@ module.exports = eggspress('/sign', {
|
|||||||
|
|
||||||
if ( item.action === 'write' ) {
|
if ( item.action === 'write' ) {
|
||||||
if ( ! await svc_acl.check(actor, node, 'write') ) {
|
if ( ! await svc_acl.check(actor, node, 'write') ) {
|
||||||
throw await svc_acl.get_safe_acl_error(actor, node, 'write');
|
item.action = 'read';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user