WEBVTT

00:00.440 --> 00:02.000
Hi everyone.

00:02.000 --> 00:07.680
In this video we need to fix the file open method inside the user submit.

00:08.200 --> 00:17.480
Okay, what I want to do right now I want to attach the one more property called is frame or not over

00:17.480 --> 00:17.880
here.

00:18.160 --> 00:18.640
Okay.

00:19.040 --> 00:23.760
If it's true, it means the current user is the frame.

00:23.800 --> 00:24.840
Let me show you.

00:25.600 --> 00:27.480
In here we have again own user.

00:27.520 --> 00:32.240
If we click send you can see we have a is foreign flag over here okay.

00:33.240 --> 00:37.920
We send this information for the front end and front end.

00:37.960 --> 00:44.040
We based on this thing to render the condition in later okay.

00:45.040 --> 00:48.000
Which are the additional file for the front end.

00:49.280 --> 00:56.520
So in order to rule out what you need to do firstly we need to retrieve the current user okay.

00:57.200 --> 00:59.400
And after that we need to find the user.

00:59.840 --> 01:06.680
And based on the user right here, we can look through the frame over here to look at the frame.

01:07.120 --> 01:13.200
And with the frame you can convert inside ID foreign Alice over here.

01:13.880 --> 01:24.480
And after that inside the item over here we need to add the flag is frame into that okay.

01:24.520 --> 01:26.520
Firstly we also need to check over here.

01:26.960 --> 01:29.160
This here will return the item right.

01:29.560 --> 01:36.080
And inside the item we will look through every item and add the flag over here.

01:36.720 --> 01:38.600
So make sure we return.

01:39.720 --> 01:43.360
And inside the controller make sure you put the current user.

01:43.760 --> 01:51.480
And also you can update the the user which is foreign over here.

01:53.400 --> 01:55.760
So that's for the video.
