fix: message styling

This commit is contained in:
Ivan Rezchikov
2026-07-13 18:02:30 +03:00
parent 7bec39b578
commit d59b4a79f8
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -10,6 +10,6 @@ export async function requireUser() {
export async function requireAdmin() {
const user = await requireUser();
if (!user.isAdmin) throw new AppError("You do not have permission to perform this action.");
if (!user.isAdmin) throw new AppError("You do not have permission to perform this action");
return user;
}