From 1639e74b9854d528089d7c9c2a93ef31c713d7cd Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 7 Nov 2019 10:56:22 -0700 Subject: [PATCH] Properly check for early access role in package select --- ui/src/main.js | 12 +++--------- ui/src/views/SelectPackages.vue | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/ui/src/main.js b/ui/src/main.js index 787db99..d54e051 100644 --- a/ui/src/main.js +++ b/ui/src/main.js @@ -129,15 +129,9 @@ var app = new Vue({ that.is_authenticated = Object.keys(that.jwt_token).length !== 0 && that.jwt_token.constructor === Object; if (that.is_authenticated) { // Give all permissions to vip roles - if (that.jwt_token.roles.indexOf("vip") > -1) { - that.is_linked = true; - that.is_subscribed = true; - that.has_reward_tier = true; - } else { - that.is_linked = that.jwt_token.isPatreonAccountLinked; - that.is_subscribed = that.jwt_token.isPatreonSubscriptionActive; - that.has_reward_tier = that.jwt_token.releaseChannels.indexOf("early-access") > -1; - } + that.is_linked = that.jwt_token.isPatreonAccountLinked; + that.is_subscribed = that.jwt_token.isPatreonSubscriptionActive; + that.has_reward_tier = that.jwt_token.releaseChannels.indexOf("early-access") > -1; } if (success) { success(); diff --git a/ui/src/views/SelectPackages.vue b/ui/src/views/SelectPackages.vue index 00fa00f..6efd2a1 100644 --- a/ui/src/views/SelectPackages.vue +++ b/ui/src/views/SelectPackages.vue @@ -6,7 +6,19 @@
-
+
+
New!
+ +

+ {{ Lpackage.description }} +

+
+
New!
{{ Lpackage.name }} @@ -33,7 +45,7 @@ {{Lpackage.need_subscription_description}}

-
+
New!
{{ Lpackage.name }} @@ -42,18 +54,6 @@ {{Lpackage.need_reward_tier_description}}

-
-
New!
- -

- {{ Lpackage.description }} -

-