Default site templates having null value in "template" column in "psys_site" table

Description

When checking object permission on default site template, siteService.getActiveSiteTemplate() always return empty / null value.

Which has cause this statement always have permitted = false
```
var allowedSiteTemplates = presideObjectService.getObjectAttribute( objectName=arguments.object, attributeName="siteTemplates", defaultValue="*" );

if ( allowedSiteTemplates != "*" && !ListFindNoCase( allowedSiteTemplates, siteService.getActiveSiteTemplate() ) ) {
permitted = false;
}
```

Environment

None

Assignee

Dominic Watson

Reporter

Johnson Cheng

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure