Web:Client:InfoPanel: fix invite users into room for portal owner and DocSpace admin, disable change room owner role
This commit is contained in:
parent
a79bae8033
commit
c26fd15459
@ -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}
|
||||
|
@ -118,6 +118,8 @@ const Members = ({
|
||||
);
|
||||
|
||||
const currCanEditUsers =
|
||||
isOwner ||
|
||||
isAdmin ||
|
||||
currentMember?.isOwner ||
|
||||
currentMember?.isAdmin ||
|
||||
currentMember?.access === ShareAccessRights.FullAccess ||
|
||||
|
Loading…
Reference in New Issue
Block a user