Build error after add security

Hi,

I followed the steps indocumentation and create a Rol, an Admin User and extended a controller with a partial class to grab current user in an entity. All works fine but, working in another page, when I tried to run after a few modifications I received an IDE error message:

C:\Program Files\Radzen\resources\node_modules@radzen\angular-generator\dist\templates\app.routes.ts.ejs:33
31| <%_ } %>
32| <%
if (security) { _%>

33| <%_ if (!page.access.includes(‘Everybody’)) { %>
34| canActivate: [AuthGuard],
35| <%
} _%>
36| data: {

Cannot read property ‘includes’ of undefined

Last line in Log file:

[2018-08-25 18:32:46.856] [error] TypeError: C:\Program Files\Radzen\resources\node_modules@radzen\angular-generator\dist\templates\app.routes.ts.ejs:33
31| <%_ } %>
32| <%
if (security) { _%>

33| <%_ if (!page.access.includes(‘Everybody’)) { %>
34| canActivate: [AuthGuard],
35| <%
} _%>
36| data: {

Cannot read property ‘includes’ of undefined
at pages.forEach (eval at compile (C:\Program Files\Radzen\resources\node_modules\ejs\lib\ejs.js:528:3), :79:24)
at Array.forEach (native)
at Object.keys.forEach.layout (eval at compile (C:\Program Files\Radzen\resources\node_modules\ejs\lib\ejs.js:528:3), :56:14)
at Array.forEach (native)
at eval (eval at compile (C:\Program Files\Radzen\resources\node_modules\ejs\lib\ejs.js:528:3), :48:35)
at returnedFn (C:\Program Files\Radzen\resources\node_modules\ejs\lib\ejs.js:524:17)
at Object.exports.render (C:\Program Files\Radzen\resources\node_modules\ejs\lib\ejs.js:332:37)
at C:\Program Files\Radzen\resources\node_modules@radzen\angular-generator\src\renderTemplate.ts:11:27

Could you say me what is wrong?

Thanks in advance

My mistake. After add security to a project with pages created I must to set security level at each.

Sorry.

Hi @Carlos_Carminati,

Do you remember what steps lead to that error? It isn’t normal and we would like to investigate it further.

Regards,
Atanas