fix: message styling
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user