优化权限

This commit is contained in:
yj 2024-08-21 14:32:20 +08:00
parent 84be3ad09d
commit d254315789
1 changed files with 4 additions and 4 deletions

View File

@ -1123,7 +1123,7 @@ const Meeting: React.FC = () => {
getRoomKickout(state.channelId, item.uid, item.userName)
}}
></Button> : null}
{item.uid !== user.uid ? <Button
{item.uid !== user.uid && item.roleId !== '1' ? <Button
type="primary"
className='m-ant-btn'
size={'small'}
@ -1293,7 +1293,7 @@ const Meeting: React.FC = () => {
{item.uid !== user.uid && user.roleId === '1' ? <div>
<Popover placement="left" title={''} content={
<div className='drag'>
<Button
{item.roleId !== '1' ? <Button
type="primary"
className='m-ant-btn'
style={{ marginBottom: '10px', width: '100%' }}
@ -1313,7 +1313,7 @@ const Meeting: React.FC = () => {
})
}
}}
>{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button>
>{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button> : null}
<Button
type="primary"
className='m-ant-btn'
@ -1400,7 +1400,7 @@ const Meeting: React.FC = () => {
getRoomKickout(state.channelId, roomUserItem.uid, roomUserItem.userName)
}}
></Button> : null}
{roomUserItem.uid !== user.uid ? <Button
{roomUserItem.uid !== user.uid && roomUserItem.roleId !== '1' ? <Button
type="primary"
className='m-ant-btn'
size={'small'}