mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
Fixed #2759
This commit is contained in:
parent
c2c8a772dd
commit
7048f2738a
1 changed files with 10 additions and 0 deletions
|
@ -124,6 +124,16 @@ namespace Ombi.Store.Context
|
||||||
SaveChanges();
|
SaveChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var editCustomPage = Roles.Where(x => x.Name == OmbiRoles.EditCustomPage);
|
||||||
|
if (!editCustomPage.Any())
|
||||||
|
{
|
||||||
|
Roles.Add(new IdentityRole(OmbiRoles.EditCustomPage)
|
||||||
|
{
|
||||||
|
NormalizedName = OmbiRoles.EditCustomPage.ToUpper()
|
||||||
|
});
|
||||||
|
SaveChanges();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure we have the API User
|
// Make sure we have the API User
|
||||||
var apiUserExists = Users.Any(x => x.UserName.Equals("Api", StringComparison.CurrentCultureIgnoreCase));
|
var apiUserExists = Users.Any(x => x.UserName.Equals("Api", StringComparison.CurrentCultureIgnoreCase));
|
||||||
if (!apiUserExists)
|
if (!apiUserExists)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue