File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments