This commit is contained in:
isUnknown 2025-01-07 11:33:15 +01:00
parent abda2e4025
commit cf0d4b7c6f
5 changed files with 17 additions and 8 deletions

View file

@ -24,5 +24,15 @@ export const useUserStore = defineStore("user", () => {
});
}
return { user, notifications, readNotification, readAllNotifications };
function canEditComment(comment) {
return user.value.uuid === comment.author.uuid;
}
return {
user,
notifications,
readNotification,
readAllNotifications,
canEditComment,
};
});