1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Apply changes backported from Enterprise edition

This commit is contained in:
McMatts 2018-12-26 18:13:00 +00:00
parent 3d0a3cecf9
commit 5757b2d36e
24 changed files with 1474 additions and 1378 deletions

View file

@ -33,6 +33,14 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
return false;
}),
showActivity: computed('permissions', function() {
if (this.get('appMeta.edition') !== this.get('constants').Product.EnterpriseEdition) return false;
if (!this.get('session.authenticated')) return false;
if (!this.get('session.viewUsers')) return false;
if (this.get('permissions.spaceView')) return true;
return false;
}),
init() {
this._super(...arguments);