feat: only admin can have edit channel entrance
This commit is contained in:
@@ -188,10 +188,12 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
|
||||
<div className="info">
|
||||
<h2 className="title">Welcome to #{name} !</h2>
|
||||
<p className="desc">This is the start of the #{name} channel. </p>
|
||||
{loginUser?.is_admin && (
|
||||
<NavLink to={`/setting/channel/${cid}?f=${pathname}`} className="edit">
|
||||
<EditIcon className="icon" />
|
||||
Edit Channel
|
||||
</NavLink>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{/* <div className="feed"> */}
|
||||
|
||||
Reference in New Issue
Block a user