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.

General Questions /

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

Director and Permissions logs user out


Reply


563 Views

Avatar
Double-A-Ron

Community Member, 604 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