details
* 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:
parent
c5ae4a5c67
commit
5ab8a8291d
7 changed files with 56 additions and 13 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue