@zenfs/core
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -112,6 +112,4 @@ import { credentials } from './credentials.js'; | ||
hasAccess(mode) { | ||
if (credentials.euid === 0 || credentials.egid === 0) { | ||
// Running as root | ||
if (this.isSymbolicLink() || credentials.euid === 0 || credentials.egid === 0) | ||
return true; | ||
} | ||
let perm = 0; | ||
@@ -118,0 +116,0 @@ // Owner permissions |
{ | ||
"name": "@zenfs/core", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "A filesystem, anywhere", | ||
@@ -5,0 +5,0 @@ "funding": { |
@@ -250,6 +250,3 @@ import type * as Node from 'node:fs'; | ||
public hasAccess(mode: number): boolean { | ||
if (credentials.euid === 0 || credentials.egid === 0) { | ||
// Running as root | ||
return true; | ||
} | ||
if (this.isSymbolicLink() || credentials.euid === 0 || credentials.egid === 0) return true; | ||
@@ -256,0 +253,0 @@ let perm = 0; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
880525
23384