test for same user via gradido ID instead of email

This commit is contained in:
Moriz Wahl 2023-04-18 12:53:39 +02:00
parent 820b4b506b
commit a8d9be1802

View File

@ -139,7 +139,7 @@ export default {
if (this.tokenExpiresInSeconds < 5) return `LOGGED_OUT`
// logged in, nicht berechtigt einzulösen, eigener link
if (this.linkData.user && this.$store.state.email === this.linkData.user.email) {
if (this.linkData.user && this.$store.state.gradidoID === this.linkData.user.gradidoID) {
return `SELF_CREATOR`
}