@eeacms/volto-clms-theme 1.1.116 → 1.1.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [1.1.117](https://github.com/eea/volto-clms-theme/compare/1.1.116...1.1.117) - 23 February 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - redirect to profile not happening with Managers [Unai Etxaburu - [`460623e`](https://github.com/eea/volto-clms-theme/commit/460623eb0c5b0bf004a93bf7213ee1d07b89ae72)]
7
12
  ### [1.1.116](https://github.com/eea/volto-clms-theme/compare/1.1.115...1.1.116) - 22 February 2024
8
13
 
9
14
  ### [1.1.115](https://github.com/eea/volto-clms-theme/compare/1.1.114...1.1.115) - 21 February 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.116",
3
+ "version": "1.1.117",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -123,11 +123,13 @@ class CLMSUserProfileView extends Component {
123
123
  this.props.user?.country === null ||
124
124
  this.props.user?.sector_of_activity === null ||
125
125
  this.props.user?.thematic_activity === null) &&
126
+ !this.props.user.roles.includes('Manager') &&
126
127
  window.location.assign('/en/profile');
127
128
  (this.props.user?.affiliation === null ||
128
129
  this.props.user?.country === null ||
129
130
  this.props.user?.sector_of_activity === null ||
130
131
  this.props.user?.thematic_activity === null) &&
132
+ !this.props.user.roles.includes('Manager') &&
131
133
  toast.error(
132
134
  <Toast
133
135
  error
@@ -142,6 +144,7 @@ class CLMSUserProfileView extends Component {
142
144
  this.props.user?.country === null ||
143
145
  this.props.user?.sector_of_activity === null ||
144
146
  this.props.user?.thematic_activity === null) &&
147
+ !this.props.user.roles.includes('Manager') &&
145
148
  window.location.assign('/en/profile');
146
149
  }
147
150
 
@@ -197,15 +200,16 @@ class CLMSUserProfileView extends Component {
197
200
  {(this.props.user?.affiliation === null ||
198
201
  this.props.user?.country === null ||
199
202
  this.props.user?.sector_of_activity === null ||
200
- this.props.user?.thematic_activity === null) && (
201
- <Segment
202
- className="profile-segment"
203
- textAlign={'center'}
204
- color={'red'}
205
- >
206
- Please fill all required data
207
- </Segment>
208
- )}
203
+ this.props.user?.thematic_activity === null) &&
204
+ !this.props.user.roles.includes('Manager') && (
205
+ <Segment
206
+ className="profile-segment"
207
+ textAlign={'center'}
208
+ color={'red'}
209
+ >
210
+ Please fill all required data
211
+ </Segment>
212
+ )}
209
213
  <p>
210
214
  Use this form to update your profile details. Be aware that if
211
215
  you want to change your name and e-mail address, you have to do
@@ -164,13 +164,14 @@ class Header extends Component {
164
164
  {(this.props.user?.affiliation === null ||
165
165
  this.props.user?.country === null ||
166
166
  this.props.user?.sector_of_activity === null ||
167
- this.props.user?.thematic_activity === null) && (
168
- <Redirect
169
- to={{
170
- pathname: '/en/profile',
171
- }}
172
- />
173
- )}
167
+ this.props.user?.thematic_activity === null) &&
168
+ !this.props.user.roles.includes('Manager') && (
169
+ <Redirect
170
+ to={{
171
+ pathname: '/en/profile',
172
+ }}
173
+ />
174
+ )}
174
175
  <div>
175
176
  <header className="ccl-header">
176
177
  {/* Body class depending on sections */}