Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Design and Development!
You have completed Design and Development!
Preview
DESCRIPTION TK
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
and when we're logged in, we're able to create a new job and when we're logged out, we're not.
0:00
And when we create a new job, our currently logged-in user is associated with that job,
0:03
as demonstrated by this new one where I was logged in as Nick when I created it
0:08
and the job is associated with Nick
0:12
while the other ones are associated with the Jim account.
0:14
So now that I'm logged in as Nick, should I be able to edit one of Jim's?
0:17
Probably not, so how do we go about restricting that?
0:22
Well, we can write another before filter, so let's go back to our controller.
0:25
So we use another before filter and what I want to do is call this
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up