mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-10-05 20:48:58 +03:00
fix(cli): migration for http plugin ACL (#9049)
* fix cli migration of http allowlist to ACL * Create fix-cli-migration-http-acl.md
This commit is contained in:
parent
77b9a508a4
commit
947a50b8e2
5
.changes/fix-cli-migration-http-acl.md
Normal file
5
.changes/fix-cli-migration-http-acl.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fix `tauri migrate` for http plugin ACL.
|
@ -14,7 +14,7 @@ use tauri_utils::{
|
||||
};
|
||||
|
||||
use std::{
|
||||
collections::HashSet,
|
||||
collections::{BTreeMap, HashSet},
|
||||
fs::{create_dir_all, write},
|
||||
path::Path,
|
||||
};
|
||||
@ -443,7 +443,11 @@ fn allowlist_to_permissions(
|
||||
.scope
|
||||
.0
|
||||
.into_iter()
|
||||
.map(|p| AclValue::String(p.to_string()))
|
||||
.map(|p| {
|
||||
let mut map = BTreeMap::new();
|
||||
map.insert("url".to_string(), AclValue::String(p.to_string()));
|
||||
AclValue::Map(map)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
permissions.push(PermissionEntry::ExtendedPermission {
|
||||
|
Loading…
Reference in New Issue
Block a user