fix #1530 for Error in Module templates

The Get public Models.[Module] Get(int id) method in the [Module]Controller has an incorrect IF statement which in turn returns nothing and logs an error
This commit is contained in:
Leigh 2021-07-05 08:25:16 +02:00
parent 7348540c4d
commit a1baf70524

View File

@ -45,7 +45,7 @@ namespace [Owner].[Module].Controllers
public Models.[Module] Get(int id)
{
Models.[Module] [Module] = _[Module]Repository.Get[Module](id);
if ([Module] != null && [Module].ModuleId != AuthEntityId(EntityNames.Module))
if ([Module] != null && [Module].ModuleId == AuthEntityId(EntityNames.Module))
{
return [Module];
}