mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 22:51:00 -07:00
Fix permission check (#18395)
This commit is contained in:
committed by
GitHub
parent
dc09b4988d
commit
9ca7300c90
@@ -1824,10 +1824,6 @@ export class Config {
|
||||
* @returns true if the path is allowed, false otherwise.
|
||||
*/
|
||||
isPathAllowed(absolutePath: string): boolean {
|
||||
if (this.interactive && path.isAbsolute(absolutePath)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const realpath = (p: string) => {
|
||||
let resolved: string;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user