We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a1c340 commit 4697f85Copy full SHA for 4697f85
server/src/rbac/map.rs
@@ -91,7 +91,7 @@ pub fn init(metadata: &StorageMetadata) {
91
let users = metadata.users.clone();
92
let mut roles = metadata.roles.clone();
93
94
- *DEFAULT_ROLE.lock().unwrap() = metadata.default_role.clone();
+ DEFAULT_ROLE.lock().unwrap().clone_from(&metadata.default_role);
95
96
let admin_privilege = DefaultPrivilege::Admin;
97
let admin_permissions = RoleBuilder::from(&admin_privilege).build();
0 commit comments