Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: BackURL redirect from base page

$
0
0

You shouldn't need to create your own login form. If the user doesn't have permission to view a particular part of the site they should get directed to Security/login with a BackUrl set to where they came from. Once they have logged in they should be shown the content. Try putting something like this in your Page class (or some other permission check). Make sure that your template includes $Form.

   public function canView($member = null) {
      return Permission::check('SITETREE_VIEW');
   }


Posted to: BackURL redirect from base page | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles