Exemple #1
0
        public PermissionCheckResult HasPermission(FirmaSession firmaSession, EvaluationCriteria contextModelObject)
        {
            if (firmaSession.IsAnonymousOrUnassigned())
            {
                return(new PermissionCheckResult("Anonymous users can't manage evaluation criteria"));
            }

            var evaluation            = contextModelObject.Evaluation;
            var permissionCheckResult = new EvaluationManageFeature().HasPermission(firmaSession, evaluation);

            return(permissionCheckResult);
        }
Exemple #2
0
        public static bool HasEvaluationManagePermission(FirmaSession currentFirmaSession, Evaluation evaluation)
        {
            var permissionCheckResult = new EvaluationManageFeature().HasPermission(currentFirmaSession, evaluation);

            return(permissionCheckResult.HasPermission);
        }