using Jiaowu.Api.Domain.Academic;

namespace Jiaowu.Api.Infrastructure.Graduation;

public static class CurriculumPlanEditingPolicy
{
    public static bool CanModifyContent(CurriculumPlanStatus status) =>
        status is CurriculumPlanStatus.Draft or CurriculumPlanStatus.Published;

    public static bool CanChangeApplicability(CurriculumPlanStatus status) =>
        status == CurriculumPlanStatus.Draft;
}
