Loading client-app/src/component/components/PDFViewer/PDFViewer.js +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ define([ _authChecker: function() { if (!this.roleGuestActive && Credentials.get("userRole") === "ROLE_GUEST") { if (!this.roleGuestActive && Credentials.userIsGuest()) { if (this.templateDisplayerPdfError) { this._publish(this.templateDisplayerPdfError.getChannel("CHANGE_TEMPLATE"), { template: TemplateAuthFailed Loading client-app/src/component/selection/SelectionBox.js +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ define([ _isRegisteredUser: function(item) { return Credentials.get('userRole') !== 'ROLE_GUEST'; return !Credentials.userIsGuest(); }, _select: function(item, total) { Loading client-app/src/component/user/UserArea.js +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ define([ _checkUserIsRegistered: function() { return Credentials.get('userRole') !== 'ROLE_GUEST'; return !Credentials.userIsGuest(); }, _startLoading: function() { Loading client-app/src/detail/_WidgetDefinition.js +2 −3 Original line number Diff line number Diff line Loading @@ -195,10 +195,9 @@ define([ var accessibilityId = item && item.accessibility && item.accessibility.id, browseableAccesibilities = [2], // libre accessibilityIsBrowseable = accessibilityId && browseableAccesibilities.indexOf(accessibilityId) !== -1, userRoleIsAdmin = Credentials.get('userRole') === 'ROLE_ADMINISTRATOR'; browseableAccesibilities.indexOf(accessibilityId) !== -1; return accessibilityIsBrowseable || userRoleIsAdmin; return accessibilityIsBrowseable || Credentials.userIsEditor(); } }] } Loading client-app/src/home/HomeView.js +1 −1 Original line number Diff line number Diff line Loading @@ -245,7 +245,7 @@ define([ info: '' }; if (Credentials.get('userRole') === 'ROLE_GUEST') { if (Credentials.userIsGuest()) { obj.roleGuest = this.i18n.contentInfo1 + ' '; obj.roleGuest += this.i18n.visitor; obj.roleGuest += this.i18n.contentInfo2; Loading Loading
client-app/src/component/components/PDFViewer/PDFViewer.js +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ define([ _authChecker: function() { if (!this.roleGuestActive && Credentials.get("userRole") === "ROLE_GUEST") { if (!this.roleGuestActive && Credentials.userIsGuest()) { if (this.templateDisplayerPdfError) { this._publish(this.templateDisplayerPdfError.getChannel("CHANGE_TEMPLATE"), { template: TemplateAuthFailed Loading
client-app/src/component/selection/SelectionBox.js +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ define([ _isRegisteredUser: function(item) { return Credentials.get('userRole') !== 'ROLE_GUEST'; return !Credentials.userIsGuest(); }, _select: function(item, total) { Loading
client-app/src/component/user/UserArea.js +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ define([ _checkUserIsRegistered: function() { return Credentials.get('userRole') !== 'ROLE_GUEST'; return !Credentials.userIsGuest(); }, _startLoading: function() { Loading
client-app/src/detail/_WidgetDefinition.js +2 −3 Original line number Diff line number Diff line Loading @@ -195,10 +195,9 @@ define([ var accessibilityId = item && item.accessibility && item.accessibility.id, browseableAccesibilities = [2], // libre accessibilityIsBrowseable = accessibilityId && browseableAccesibilities.indexOf(accessibilityId) !== -1, userRoleIsAdmin = Credentials.get('userRole') === 'ROLE_ADMINISTRATOR'; browseableAccesibilities.indexOf(accessibilityId) !== -1; return accessibilityIsBrowseable || userRoleIsAdmin; return accessibilityIsBrowseable || Credentials.userIsEditor(); } }] } Loading
client-app/src/home/HomeView.js +1 −1 Original line number Diff line number Diff line Loading @@ -245,7 +245,7 @@ define([ info: '' }; if (Credentials.get('userRole') === 'ROLE_GUEST') { if (Credentials.userIsGuest()) { obj.roleGuest = this.i18n.contentInfo1 + ' '; obj.roleGuest += this.i18n.visitor; obj.roleGuest += this.i18n.contentInfo2; Loading