Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » restricted webPages

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1161 Views
  • lxer
    Avatar
    Community Member
    16 Posts

    restricted webPages Link to this post

    I would like to have a few pages only to be visible after a user has logged in, but they
    shouldn't have access to the CMS.

    I mean, now after I login, it redirects the (guest)user to the CMS (which it doesn't have access to) , instead it should just return to the webpage and show the extra pages in the menu

    how can I fix this?

  • headless_pnub
    Avatar
    Community Member
    17 Posts

    Re: restricted webPages Link to this post

    Hi,

    I'm trying to do a similar thing. I have created the user in the security tab and set the access on the page to be viewed only by logged in users.
    The problem I'm getting is when I try and log in as the user it keeps telling me I can't access the cms and doesn't log me in.

    Is there something in the admin I need to set to say this user shouldn't access the admin, but can log in?

    Thanks in advance,
    Pnub

  • joelg
    Avatar
    Community Member
    129 Posts

    Re: restricted webPages Link to this post

    Hi you both

    I'm having a similar problem (using the latest Silverstripe). I've created a menu, made some of the pages visible only for a special group in the security panel, however something goes very wrong. This is what happens:

    When you log in, not as an admin, but as a user in a special group, you get redirected to a page I've set using this tutorial from ssbits: http://ssbits.com/custom-login-form-with-group-based-redirection/ - this part works fine.

    Now logged in as a user in this special group I can view the secured pages (this is possible since I'm getting redirected to one of them), but if I refresh the browser or just clicks on any other menu link, the user gets logged out and all the secured menu links gets hidden again.

    Have you got any ideas what goes wrong? Sessions?

    Thanks for your help

    Joel

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: restricted webPages Link to this post

    Did you manage to fix this problem? I'm also trying to create a log-in part, but user shouldnt have CMS access.

    1161 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.