|
@@ -103,7 +103,7 @@ impl Cmd {
|
|
} = value
|
|
} = value
|
|
{
|
|
{
|
|
if crate::api::file::SafePathBuf::new(path.clone()).is_err()
|
|
if crate::api::file::SafePathBuf::new(path.clone()).is_err()
|
|
- || scopes.fs.is_allowed(&path)
|
|
|
|
|
|
+ || !scopes.fs.is_allowed(&path)
|
|
{
|
|
{
|
|
return Err(crate::Error::PathNotAllowed(path.clone()).into_anyhow());
|
|
return Err(crate::Error::PathNotAllowed(path.clone()).into_anyhow());
|
|
}
|
|
}
|