We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978a85e commit c9028efCopy full SHA for c9028ef
src/handlers/http/modal/query/querier_rbac.rs
@@ -168,8 +168,6 @@ pub async fn add_roles_to_user(
168
let userid = userid.into_inner();
169
let roles_to_add = roles_to_add.into_inner();
170
171
- let _guard = UPDATE_LOCK.lock().await;
172
-
173
if !Users.contains(&userid) {
174
return Err(RBACError::UserDoesNotExist);
175
};
@@ -225,7 +223,7 @@ pub async fn remove_roles_from_user(
225
223
let roles_to_remove = roles_to_remove.into_inner();
226
224
227
let _guard = UPDATE_LOCK.lock().await;
228
+
229
230
231
0 commit comments