* AdminController.cs: Notification when Admin group is created

* LocalizedText.resx:
* LocalizedText.fr.resx:
* LocalizedText.Designer.cs:
* LocalizedText.fr.Designer.cs: Existant DB message
This commit is contained in:
2015-10-23 11:31:42 +02:00
parent c5ae4a5c67
commit 5ab8a8291d
7 changed files with 56 additions and 13 deletions

View File

@ -1,3 +1,7 @@
2015-10-23 Paul Schneider <paul@pschneider.fr>
* AdminController.cs: Notification when Admin group is created
2015-10-22 Paul Schneider <paul@pschneider.fr>
* parralax.js: YastepInDaPresentation

View File

@ -27,11 +27,16 @@ namespace Yavsc.Controllers
{
if (!Roles.RoleExists (adminRoleName)) {
Roles.CreateRole (adminRoleName);
YavscHelpers.Notify (adminRoleName + " " + LocalizedText.role_created);
}
return View ();
}
/// <summary>
/// Inits the db.
/// In order this action succeds,
/// there must not exist any administrator,
/// nor Admin group.
/// </summary>
/// <returns>The db.</returns>
/// <param name="datac">Datac.</param>
@ -59,7 +64,6 @@ namespace Yavsc.Controllers
[Authorize(Roles="Admin")]
public ActionResult Backups(DataAccess model)
{
return View (model);
}
/// <summary>