* New features:
- New Client at estimation, ala ajax - Admins can now edit user's profiles
This commit is contained in:
parent
d9728c5998
commit
0755dd62b3
33 changed files with 634 additions and 234 deletions
|
|
@ -159,12 +159,14 @@ namespace Yavsc.Controllers
|
|||
[Authorize(Roles="Admin")]
|
||||
public ActionResult RemoveUser (string username, string submitbutton)
|
||||
{
|
||||
ViewData ["usertoremove"] = username;
|
||||
if (submitbutton == "Supprimer") {
|
||||
Membership.DeleteUser (username);
|
||||
ViewData["Message"]=
|
||||
string.Format("utilisateur \"{0}\" supprimé",username);
|
||||
ViewData ["usertoremove"] = null;
|
||||
}
|
||||
return RedirectToAction("UserList");
|
||||
return View ();
|
||||
}
|
||||
/// <summary>
|
||||
/// Removes the role.
|
||||
|
|
|
|||
Loading…
Reference in a new issue