Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8216119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:01:15+00:00 2026-06-07T12:01:15+00:00

I need to be be pointed to the right direction. I am writing a

  • 0

I need to be be pointed to the right direction. I am writing a simple application where a user can log in and see their task list. I want the app secure. I can only get as far as authenticating a user to access the entire site. Obviously that’s not what I want. I want them to access ONLY their own accounts. Is there a good site to read about this? I’m learning v2.x . Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:01:16+00:00Added an answer on June 7, 2026 at 12:01 pm

    I could not think of any site other than the book. That is how I implemented mine. I set the logged user in app controller’s beforeRender callback. That way it is available in all controllers.

    I then have a function in the users controller called dashboard

    function dashboard($userId = NULL) {}
    

    If the userId matches the one in the logged user, or in my case, the user is an admin, then proceed, else redirect the user with a message that they are not permitted.

    All of this is if you are using only the Auth component. If you want to use the ACL component too, you will have to check if the user is also permitted to access the page.

    Sources
    http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just need to be pointed in the right direction - I can research
I need to get pointed in the right direction. I have embedded an Iron
I need help being pointed in the right direction (to the right documentation or
I am just curious if someone can get me pointed in the right direction
I need to be pointed in the right direction for this problem I'm working
NOTE: user377519 (answer below) pointed me in the right direction. I've posted the 'fix'
Hi :) I'm writing a C# application and need to get the HWID code
just a quick question to hopefully get pointed in the right direction. I took
i need a pointer i the right direction. I have been looking around and
I need to delete and erase object pointer on a vector. I see this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.