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:
parent
3d0a3cecf9
commit
5757b2d36e
24 changed files with 1474 additions and 1378 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue