This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
rustyms
I'm working with a client that will be displaying dynamic pages to visitors. I'd like to make a "edit" button on the front page if and only if they are logged in that will give them a form that will allow for editing.
Is there anyway to tell if someone is a backend logged in user on the frontend?
Thank you for your time.
606ep
You can use BackendAuth facade to check if user is logged in to backend:
$user = BackendAuth::getUser();
if ($user) {
...
}
Last updated
1-2 of 2