mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-20 23:28:53 -05:00
fix: remove legacy permission check in stat
This commit is contained in:
@@ -49,13 +49,6 @@ class HLStat extends HLFilesystemOperation {
|
||||
throw await svc_acl.get_safe_acl_error(actor, subject, 'read');
|
||||
}
|
||||
|
||||
// check permission
|
||||
// TODO: this check is redundant now that ACL is used;
|
||||
// we will need to remove it to implement user-user permissions
|
||||
if(user && !await chkperm(subject.entry, user.id, 'stat')){
|
||||
throw { code:`forbidden`, message: `permission denied.`};
|
||||
}
|
||||
|
||||
// TODO: why is this specific to stat?
|
||||
const mime = this.require('mime-types');
|
||||
const contentType = mime.contentType(subject.entry.name)
|
||||
|
||||
Reference in New Issue
Block a user