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

Activity

Show:
Johnson Cheng
October 19, 2018, 7:55 AM

Hi Dom, could you review this?

https://github.com/pixl8/Preside-CMS/pull/554

Dominic Watson
October 30, 2018, 11:05 AM

Super, thanks for this . I have taken a slightly different approach to fixing as seen here:

https://github.com/pixl8/Preside-CMS/commit/b30b013ee5fca813ac3204ec59b87b4a6c3181bf

Assignee

Dominic Watson

Reporter

Johnson Cheng

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure