Skip to content

Commit 6c06832

Browse files
fix(acl): scope resolution should be per window (#9068)
* fix(acl): scope resolution should be per window * Update core/tauri-utils/src/acl/resolved.rs Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com> * update snapshots * lint --------- Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
1 parent 9aa0d6e commit 6c06832

23 files changed

+1460
-986
lines changed

.changes/fix-scope-resolution.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri": patch:bug
3+
"tauri-utils": patch:bug
4+
---
5+
6+
Fixes scope resolution grouping scopes for all windows.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:breaking
3+
---
4+
5+
The `allows` and `denies` methods from `ipc::ScopeValue`, `ipc::CommandScope` and `ipc::GlobalScope` now returns `&Vec<Arc<T>>` instead of `&Vec<T>`.

core/tauri-utils/src/acl/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@ pub struct PermissionSet {
205205
}
206206

207207
/// Execution context of an IPC call.
208-
#[derive(Debug, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
208+
#[derive(Debug, Default, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
209209
pub enum ExecutionContext {
210210
/// A local URL is used (the Tauri app URL).
211+
#[default]
211212
Local,
212213
/// Remote URL is tring to use the IPC.
213214
Remote {

0 commit comments

Comments
 (0)