Merge pull request #213 from fileman/AddModuleDefaultValueCheck

Add Module Value Check
This commit is contained in:
Shaun Walker 2020-02-18 08:21:18 -05:00 committed by GitHub
commit d9348d1088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -301,7 +301,7 @@
private async Task AddModule() private async Task AddModule()
{ {
if (UserSecurity.IsAuthorized(PageState.User, "Edit", PageState.Page.Permissions)) if (UserSecurity.IsAuthorized(PageState.User, "Edit", PageState.Page.Permissions) && !string.IsNullOrWhiteSpace(moduledefinitionname) && moduledefinitionname != "-")
{ {
if (moduletype == "new") if (moduletype == "new")
{ {

View File

@ -1,5 +0,0 @@
{
"ConnectionStrings": {
"DefaultConnection": ""
}
}