Jump to:

23574 Posts in 19401 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » Director and Permissions logs user out

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: 547 Views
  • Double-A-Ron
    Community Member
    604 Posts

    Director and Permissions logs user out Link to this post

    Hi all,

    I have created a new Member type using DataObjectDecorator and am have emmense problems working out why it logs the current user out when:

    1. You manually type /admin/ into the URL
    2. You restrict access using the canView method

    In both cases, even when logged in, the user is redirected to /Security/login and tells them they do not have permission to view. However when you navigate back to a normal, accessable page, you are logged out of the current user.

    This is not the case if I manually navigate to /Security/login so it must be something up with Permission or Director.

    SS 2.3.3.

    Any ideas?

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.