Exemplo n.º 1
0
        public override Func <Lite <RoleEntity>, OperationAllowed, OperationAllowed> GetCoerceValueManual(OperationSymbol operationKey)
        {
            return((role, allowed) =>
            {
                var required = OperationAuthLogic.MaxTypePermission(operationKey, TypeAllowedBasic.Read, t => TypeAuthLogic.Manual.GetAllowed(role, t));

                return allowed < required ? allowed : required;
            });
        }
Exemplo n.º 2
0
 static OperationAllowed GetDefault(OperationSymbol key, Lite <RoleEntity> role)
 {
     return(OperationAuthLogic.MaxTypePermission(key, TypeAllowedBasic.Modify, t => TypeAuthLogic.GetAllowed(role, t)));
 }