Skip to content

Commit

Permalink
Disable ACL editing when locked to series
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Dec 16, 2024
1 parent 62c734b commit f8d633f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/routes/manage/Video/Access.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ const AccessUI: React.FC<AccessUIProps> = ({ event, knownRoles }) => {
const saveModalRef = useRef<ConfirmationModalHandle>(null);
const [commitError, setCommitError] = useState<JSX.Element | null>(null);
const [commit, inFlight] = useMutation<AccessUpdateAclMutation>(updateVideoAcl);
const [editingBlocked, setEditingBlocked] = useState(event.hasActiveWorkflows);
const aclLockedToSeries = CONFIG.lockAclToSeries && event.series;
const [editingBlocked, setEditingBlocked] = useState(
event.hasActiveWorkflows || aclLockedToSeries
);

const initialAcl: Acl = mapAcl(event.acl);

Expand Down

0 comments on commit f8d633f

Please sign in to comment.