Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap-flow-router - Can see private stuff without login #29

Open
jfer77 opened this issue Nov 1, 2016 · 0 comments
Open

bootstrap-flow-router - Can see private stuff without login #29

jfer77 opened this issue Nov 1, 2016 · 0 comments

Comments

@jfer77
Copy link

jfer77 commented Nov 1, 2016

The router.js is a client and server component. In the file i have the following route:

FlowRouter.route('/', {
  name: "home",
  action: function(params, queryParams) {
    BlazeLayout.render('masterLayout', {
      footer: "footer",
      main: "home",
      nav: "nav",
    });
  }
});

With that code i'm directly routed to the home template. Which working great. if i clicking on private, I have to login to see the content of private template.

But if I change the template home by private like so:

FlowRouter.route('/', {
  name: "home",
  action: function(params, queryParams) {
    BlazeLayout.render('masterLayout', {
      footer: "footer",
      main: "private",
      nav: "nav",
    });
  }
});

When the page refreshes I have the template private without asking any login
=> This is private stuff!

The problem is that the client can change himself the value in the router.js as it is client file. Eventhough the server shouldn't give any data, the client access the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant