|
|
@@ -56,11 +56,13 @@ export default { |
|
|
|
currentUser.locale !== null |
|
|
|
? currentUser.locale |
|
|
|
: 'detect'; |
|
|
|
this.getPolicyByUserId({ |
|
|
|
userId: currentUser.uuid, |
|
|
|
messages: this.messages, |
|
|
|
errors: this.errors, |
|
|
|
}); |
|
|
|
if (!currentUser.admin) { |
|
|
|
this.getPolicyByUserId({ |
|
|
|
userId: currentUser.uuid, |
|
|
|
messages: this.messages, |
|
|
|
errors: this.errors, |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
hasVerifiedContact(policy) { |
|
|
@@ -100,8 +102,7 @@ export default { |
|
|
|
watch: { |
|
|
|
policy(p) { |
|
|
|
this.verifiedContacts = this.hasVerifiedContact(p); |
|
|
|
const currentUser = util.currentUser(); |
|
|
|
if (!this.verifiedContacts && !currentUser.admin) { |
|
|
|
if (!this.verifiedContacts) { |
|
|
|
this.navigateToVerifyEmail(); |
|
|
|
if (this.verifiedContactRefresher === null) { |
|
|
|
const vue = this; |
|
|
|