AnsweredAssumed Answered

Assigning access rights to the custom site page

Question asked by dreambitc on Oct 8, 2012
Latest reply on Oct 10, 2012 by dreambitc
Hey guys.
I have some custom site page, created for example by this article http://docs.alfresco.com/3.4/index.jsp?topic=%2Fcom.alfresco.Enterprise_3_4_0.doc%2Ftasks%2Fkb-code-site-add.html
In the folder, it's look like this:
1) hello.get.desc.xml
2) hello.get.head.ftl
3) hello.get.html
4) hello.get.js

What do I need:
If the user does not have access rights to the page(for example, it is not in a specific group, created by me), he should be redirected to dashboard.
It would be better:
1) If user does not have access rights to the page, alfresco will return to the standard error(lack of access, etc.)
2) If user does not have access rights to the page, insert in the head file tag <meta http-equiv="REFRESH" content="0;url=http://someurl.com">
3) If user does not have access rights to the page, from the script(hello.get.js) assign 333 to a status.code variable and status.redirect

I have no idea how to implement the first paragraph.
In the second paragraph I have problem: status, person variables are not available
The third paragraph is also not possible for the same reason that the second


Does anyone have any ideas how it should be done?

Outcomes