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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


745 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