fix #87
This commit is contained in:
parent
abda2e4025
commit
cf0d4b7c6f
5 changed files with 17 additions and 8 deletions
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue