mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-13 05:49:48 +00:00
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);
|
collectionParams.set(COLLECTIONS_CONSTS.COLLECTION_ID, collectionId);
|
||||||
navigateUrl = navigateUrl + `?` + collectionParams.toString();
|
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 = {
|
const navLinkProps = {
|
||||||
to: navigateUrl,
|
to: navigateUrl,
|
||||||
onClick: (e) => e.stopPropagation(),
|
onClick: (e) => e.stopPropagation(),
|
||||||
|
|
|
@ -99,7 +99,7 @@ function ClaimPreviewTile(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const signingChannel = claim && claim.signing_channel;
|
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) {
|
function handleClick(e) {
|
||||||
if (navigateUrl) {
|
if (navigateUrl) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue