当前位置: 动力学知识库 > 问答 > 编程问答 >

meteor - Changing default 'Sorry, you don't have the rights to view this page' for private Telescope

问题描述:

I have set up a Telescope app (fresh install) and have set it to private. I need to change the default template that is rendered (on the homepage) when Telescope is set to private and the user is not logged in.

I have looked through the routes and client/views templates and JS files and I can not figure out how to change the template that gets rendered when a Telescope installation is set to private.

网友答案:

If you want to change to a custom template, but you don't want to mess with the actual code.

You can just change the template content here and put whatever code you like.

Just be sure to update the en.i18n.json file line 131

网友答案:

When a site is set to private, users get redirected to the no_rights template (no_rights.html).

Solved, with some help ;-) I hope others find this just as useful.

分享给朋友:
您可能感兴趣的文章:
随机阅读: