@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
|
@@ -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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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 */}
|