Skip to content

Commit

Permalink
Hide editor link on live videos (#1182)
Browse files Browse the repository at this point in the history
Adds a check to conditionally hide the editor link from "video details"
if the video is live (live videos can't be edited).

Closes #1177
  • Loading branch information
LukasKalbertodt committed Jun 20, 2024
2 parents f3c93e5 + e75fa31 commit 77a59d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/routes/manage/Video/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Page: React.FC<Props> = ({ event }) => {
}}>
<UpdatedCreatedInfo event={event} />
<div css={{ margin: "8px 2px", flex: "1 0 auto" }}>
{user.canUseEditor && event.canWrite && (
{user.canUseEditor && !event.isLive && event.canWrite && (
<ExternalLink
service="EDITOR"
params={{ mediaPackageId: event.opencastId }}
Expand Down

0 comments on commit 77a59d6

Please sign in to comment.