Web:Client:InfoPanel: fix invite users into room for portal owner and DocSpace admin, disable change room owner role

This commit is contained in:
TimofeyBoyko 2022-11-11 11:50:36 +03:00
parent a79bae8033
commit c26fd15459
2 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,8 @@ const User = ({
}
};
console.log(userRole);
return (
<StyledUser isExpect={isExpect} key={user.id}>
<Avatar
@ -84,7 +86,9 @@ const User = ({
{userRole && userRoleOptions && (
<div className="role-wrapper">
{currCanEditUsers && currentMember?.id !== user.id ? (
{currCanEditUsers &&
currentMember?.id !== user.id &&
userRole.access !== ShareAccessRights.FullAccess ? (
<ComboBox
className="role-combobox"
selectedOption={userRole}

View File

@ -118,6 +118,8 @@ const Members = ({
);
const currCanEditUsers =
isOwner ||
isAdmin ||
currentMember?.isOwner ||
currentMember?.isAdmin ||
currentMember?.access === ShareAccessRights.FullAccess ||