Exemplo n.º 1
0
        private void EnsureInModifyAccess(ClassroomOption inputOptions, StiConnector.Connectors.Model.ClassroomOption currentOptions)
        {
            if (inputOptions.AveragingMethod != currentOptions.AveragingMethod)
            {
                BaseSecurity.EnsureHavingClaim(ClaimInfo.MAINTAIN_GRADE_BOOK_AVG_METHOD, Context);
            }

            if (inputOptions.StandardsCalculationWeightMaximumValues != currentOptions.StandardsCalculationWeightMaximumValues)
            {
                BaseSecurity.EnsureHavingClaim(ClaimInfo.MAINTAIN_STANDARDS_OPTIONS, Context);
            }

            if (inputOptions.StandardsCalculationRule != currentOptions.StandardsCalculationRule)
            {
                BaseSecurity.EnsureHavingClaim(ClaimInfo.MAINTAIN_STANDARDS_OPTIONS, Context);
            }

            if (inputOptions.StandardsGradingScaleRef != currentOptions.StandardsGradingScaleId)
            {
                BaseSecurity.EnsureHavingClaim(ClaimInfo.MAINTAIN_STANDARDS_OPTIONS, Context);
            }

            if (inputOptions.StandardsCalculationMethod != currentOptions.StandardsCalculationMethod)
            {
                BaseSecurity.EnsureHavingClaim(ClaimInfo.MAINTAIN_STANDARDS_OPTIONS, Context);
            }
        }