Skip to content

Commit

Permalink
showing correct profile info
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh12-99 committed Jan 11, 2024
1 parent 2e3ca12 commit 349da64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/containers/UserManagement/EditProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ const EditProfile = () => {
const { id: userId, role } = loggedInUserData;

if (userId === +id) {
if (role === "ADMIN" || userId === orgOwnerId) {
if (
role === "ADMIN" ||
userId === orgOwnerId ||
role === "PROJECT_MANAGER"
) {
return name === "org" || name === "availability";
} else {
return name === "role" || name === "org" || name === "availability";
Expand Down

0 comments on commit 349da64

Please sign in to comment.