mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00: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 ( ! 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