Skip to content

Commit

Permalink
some uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Oct 31, 2022
1 parent 536e63c commit 9fe1eb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/server/src/routers/api/user.rs
Expand Up @@ -136,7 +136,6 @@ async fn get_user_by_id(
let db = ctx.get_db();
let user = get_session_user(&session)?;

// TODO: Add user delete himself
if !user.is_admin() {
return Err(ApiError::Forbidden(
"You do not have permission to access this resource.".into(),
Expand Down

0 comments on commit 9fe1eb3

Please sign in to comment.