mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
refactor(fs)!: remove the unwatch permission (#3606)
There has been no `unwatch` command since v2.0 (`Watcher.close()` releases the resource), so `allow-unwatch` and `deny-unwatch` never granted anything.
This commit is contained in:
@@ -97,8 +97,6 @@ const COMMANDS: &[&str] = &[
|
||||
"fstat",
|
||||
"exists",
|
||||
"watch",
|
||||
// TODO: Remove this in v3
|
||||
"unwatch",
|
||||
"size",
|
||||
"start_accessing_security_scoped_resource",
|
||||
"stop_accessing_security_scoped_resource",
|
||||
|
||||
@@ -564,32 +564,6 @@ Denies the truncate command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-unwatch`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the unwatch command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:deny-unwatch`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the unwatch command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-watch`
|
||||
|
||||
</td>
|
||||
|
||||
@@ -16,5 +16,4 @@ commands.allow = [
|
||||
"fstat",
|
||||
"exists",
|
||||
"watch",
|
||||
"unwatch",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user