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:
parent
7348540c4d
commit
a1baf70524
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user