Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Director and Permissions logs user out


Go to End


818 Views

Avatar
Double-A-Ron

Community Member, 607 Posts

11 November 2009 at 5:58pm

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?
Aaron