瀏覽代碼

fix: pass admin without email verification

pull/53/head
Tyler Chen 4 年之前
父節點
當前提交
6e843e0b00
共有 1 個文件被更改,包括 8 次插入7 次删除
  1. +8
    -7
      src/_pages/main/Layout.vue

+ 8
- 7
src/_pages/main/Layout.vue 查看文件

@@ -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;


Loading…
取消
儲存