- Data:
- 2009-09-30 15:49:14 (17 years ago)
- Lokalizacja:
- branches/Emisje
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
Wierszowki/Wierszowki.Web/Controllers/UserController.cs (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/Emisje
- Property svn:mergeinfo
-
old new 1 /branches/AutoShopper:815-818 1 2 /branches/ReklamaReorganizacja:568-731 2 /trunk:774-810 3 /tags/BazaReklam_1.1.28:831 4 /trunk:774-837
-
- Property svn:mergeinfo
-
branches/Emisje/Wierszowki/Wierszowki.Web/Controllers/UserController.cs
r752 r838 62 62 return View(user); 63 63 } 64 65 64 [Authorize] 66 65 [AcceptVerbs(HttpVerbs.Get)] 67 66 public ActionResult Edit(int id) 68 67 { 68 User user = _service.Find(id); 69 if (user != null) 70 { 71 string name = ControllerContext.HttpContext.User.Identity.Name; 72 var LogInUser = _service.FindOne(u => u.Login == name); 73 if (LogInUser.Id == user.Id) 74 { 69 75 return View(_service.Find(id)); 76 } 77 else 78 { 79 ViewData["message"] = "error_user"; 80 return View("Confirm"); 81 } 82 83 } 84 ViewData["message"] = "error"; 85 return View("Confirm"); 70 86 } 71 87 … … 77 93 { 78 94 _service.Update(user); 95 79 96 } 80 97 catch (RulesException ex)
