Merge branch 'develop' into refactor-component-structure

This commit is contained in:
Randall Morey authored and GitHub committed 2020-09-24 15:06:23 -04:00
commit 81d9cd398f
3 files changed
+111 -58

No files matched your search

+4 -1
View File
@@ -12,10 +12,13 @@ export default class ScopesScopeOrgsRoute extends Route {
// =methods
/**
* If arriving here unauthenticated, redirect to index for further processing.
* If arriving here unauthenticated or from a non-global scope,
* redirect to index for further processing.
*/
beforeModel() {
if (!this.session.isAuthenticated) this.transitionTo('index');
const scope = this.modelFor('scopes.scope');
if(!scope.isGlobal) this.transitionTo('index');
}
/**