diff Agendas/trunk/src/Agendas.Web/Controllers/PatrocinadorApiController.cs @ 292:1408ac17cb64

Patrocinadores: Faltaba aplicar seguridad a la Api de Patrocinadores.
author juanjose.montesdeocaarbos
date Thu, 09 Feb 2012 08:40:38 -0300
parents c8f378272407
children 9bc60d166c8a
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/PatrocinadorApiController.cs	Thu Feb 09 00:12:00 2012 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/PatrocinadorApiController.cs	Thu Feb 09 08:40:38 2012 -0300
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
+using System.Web;
 using System.Web.Mvc;
 using System.IO;
 using AltNetHispano.Agendas.Domain;
@@ -36,7 +33,7 @@
 			_server = server;
 		}
 
-		//[CustomAuthorize(Roles = Roles.Administrador)]
+		[CustomAuthorize(Roles = Roles.Administrador)]
 		public PartialViewResult Nuevo()
         {
 			var model = new PatrocinadorNewModel();
@@ -44,7 +41,7 @@
         }
 
 		[HttpPost]
-		//[CustomAuthorize(Roles = Roles.Administrador)]
+		[CustomAuthorize(Roles = Roles.Administrador)]
 		public JsonResult Nuevo(PatrocinadorNewModel model)
 		{
 			if (ModelState.IsValid)