Skip to content

Commit e1a8f8b

Browse files
committed
Display third party notices in UI
1 parent e1001bb commit e1a8f8b

File tree

6 files changed

+2576
-1
lines changed

6 files changed

+2576
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2016 Documize Inc. <[email protected]>. All rights reserved.
2+
//
3+
// This software (Documize Community Edition) is licensed under
4+
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
5+
//
6+
// You can operate outside the AGPL restrictions by purchasing
7+
// Documize Enterprise Edition and obtaining a commercial license
8+
// by contacting <[email protected]>.
9+
//
10+
// https://documize.com
11+
12+
import { inject as service } from '@ember/service';
13+
import Controller from '@ember/controller';
14+
15+
export default Controller.extend({
16+
appMeta: service(),
17+
});
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2016 Documize Inc. <[email protected]>. All rights reserved.
2+
//
3+
// This software (Documize Community Edition) is licensed under
4+
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
5+
//
6+
// You can operate outside the AGPL restrictions by purchasing
7+
// Documize Enterprise Edition and obtaining a commercial license
8+
// by contacting <[email protected]>.
9+
//
10+
// https://documize.com
11+
12+
import { inject as service } from '@ember/service';
13+
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
14+
import Route from '@ember/routing/route';
15+
16+
export default Route.extend(AuthenticatedRouteMixin, {
17+
appMeta: service(),
18+
session: service(),
19+
global: service(),
20+
21+
beforeModel() {
22+
if (!this.get("session.isAdmin")) {
23+
this.transitionTo('auth.login');
24+
}
25+
},
26+
27+
model() {
28+
},
29+
30+
activate() {
31+
this.get('browser').setTitle('Notices');
32+
}
33+
});

0 commit comments

Comments
 (0)