Skip to content

Commit 95bf775

Browse files
authored
Merge pull request #1682 from CodeNow/hotfix-fix-paused
Hotfix - Everyone Paused
2 parents 209efe8 + 00850ba commit 95bf775

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

client/config/routes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ module.exports = [
142142
},
143143
activeAccount: function (
144144
$q,
145-
$stateParams,
146145
$state,
147-
orgs,
148-
whitelists,
146+
$stateParams,
149147
$timeout,
150-
user,
148+
activeOrg,
151149
eventTracking,
152-
activeOrg
150+
featureFlags,
151+
orgs,
152+
user
153153
) {
154154
var lowerAccountName = $stateParams.userName.toLowerCase();
155155
var userName = user.oauthName().toLowerCase();
@@ -169,7 +169,7 @@ module.exports = [
169169
return $q.reject(new Error('User Unauthorized for Organization'));
170170
});
171171
}
172-
if (!activeOrg.attrs.isActive) {
172+
if ((!featureFlags.flags.billing && !activeOrg.attrs.allowed) || (featureFlags.flags.billing && !activeOrg.attrs.isActive)) {
173173
// There is a bug in ui-router and a timeout is the workaround
174174
return $timeout(function () {
175175
$state.go('paused');

0 commit comments

Comments
 (0)