fix: user api checks (#2294)

- [x] Check role during User Creation
- [x] Added checks during User Deletion/removal from org
This commit is contained in:
Ashish Kolhe
2023-12-23 22:48:59 +05:30
committed by GitHub
parent 029b2420b5
commit 3cc141d778
8 changed files with 142 additions and 92 deletions
+1
View File
@@ -125,6 +125,7 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
last_name: "".to_owned(),
is_external: false,
},
&CONFIG.auth.root_user_email.clone(),
)
.await?;
}