You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
@@ -453,7 +453,7 @@ pub async fn project_edit(
|
||||
old_status: project_item.inner.status,
|
||||
},
|
||||
thread_id: project_item.thread_id,
|
||||
hide_identity: true,
|
||||
hide_identity: user.role.is_mod(),
|
||||
}
|
||||
.insert(&mut transaction)
|
||||
.await?;
|
||||
|
||||
@@ -435,7 +435,7 @@ pub async fn report_edit(
|
||||
MessageBody::ThreadClosure
|
||||
},
|
||||
thread_id: report.thread_id,
|
||||
hide_identity: true,
|
||||
hide_identity: user.role.is_mod(),
|
||||
}
|
||||
.insert(&mut transaction)
|
||||
.await?;
|
||||
|
||||
@@ -569,6 +569,7 @@ pub async fn add_team_member(
|
||||
|
||||
transaction.commit().await?;
|
||||
TeamMember::clear_cache(team_id, &redis).await?;
|
||||
User::clear_project_cache(&[new_member.user_id.into()], &redis).await?;
|
||||
|
||||
Ok(HttpResponse::NoContent().body(""))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user