Hi everyone.
In this video we need to fix the file open method inside the user submit.
Okay, what I want to do right now I want to attach the one more property called is frame or not over
here.
Okay.
If it's true, it means the current user is the frame.
Let me show you.
In here we have again own user.
If we click send you can see we have a is foreign flag over here okay.
We send this information for the front end and front end.
We based on this thing to render the condition in later okay.
Which are the additional file for the front end.
So in order to rule out what you need to do firstly we need to retrieve the current user okay.
And after that we need to find the user.
And based on the user right here, we can look through the frame over here to look at the frame.
And with the frame you can convert inside ID foreign Alice over here.
And after that inside the item over here we need to add the flag is frame into that okay.
Firstly we also need to check over here.
This here will return the item right.
And inside the item we will look through every item and add the flag over here.
So make sure we return.
And inside the controller make sure you put the current user.
And also you can update the the user which is foreign over here.
So that's for the video.