Skip to content

Commit

Permalink
topics deletion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros authored and jnaviask committed Aug 7, 2024
1 parent 05e3081 commit 8fb8235
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function __deleteTopic(
throw new AppError(Errors.TopicNotFound);
}

const isAdmin = validateOwner({
const isAdmin = await validateOwner({
models: this.models,
user,
communityId: topic.community_id,
Expand Down

0 comments on commit 8fb8235

Please sign in to comment.