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

Protect document activity and revisions from external users

This commit is contained in:
Harvey Kandola 2018-07-18 12:43:49 -04:00
parent 6617a5de45
commit 50c7fabeb6
2 changed files with 7 additions and 0 deletions

View file

@ -79,6 +79,12 @@ export default SimpleAuthSession.extend({
this.get('session.content.authenticated.user.viewUsers') === true;
}),
viewUsers: computed('session.content.authenticated.user', function () {
return this.get('session.authenticator') !== 'authenticator:anonymous' &&
this.get('session.content.authenticated.user.id') !== '0' &&
this.get('session.content.authenticated.user.viewUsers') === true;
}),
init() {
this._super(...arguments);