Don't allow editing someone else's Channel
This commit is contained in:
parent
852819dd00
commit
2bfc5d7669
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
|
|||
collectionParams.set(COLLECTIONS_CONSTS.COLLECTION_ID, collectionId);
|
||||
navigateUrl = navigateUrl + `?` + collectionParams.toString();
|
||||
}
|
||||
const channelUri = claim && (signingChannel ? signingChannel.permanent_url : claim.permanent_url);
|
||||
const channelUri = !isChannelUri ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
|
||||
const navLinkProps = {
|
||||
to: navigateUrl,
|
||||
onClick: (e) => e.stopPropagation(),
|
||||
|
|
|
@ -99,7 +99,7 @@ function ClaimPreviewTile(props: Props) {
|
|||
}
|
||||
|
||||
const signingChannel = claim && claim.signing_channel;
|
||||
const channelUri = signingChannel && signingChannel.permanent_url;
|
||||
const channelUri = !isChannel ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
|
||||
|
||||
function handleClick(e) {
|
||||
if (navigateUrl) {
|
||||
|
|
Loading…
Reference in a new issue