Hi am making a Call Recording System, basically, there's admin and user. Admin will upload a call recording file which is stored in the file system. Then the admin will assign that a user a call recording which the user can see.
So in my database I have
RecordingsTable
->id
->Name
->Path
->FileName
then my Designation table which where I store the assigned call recording to a user.
DesignationTable
->id
->User_id
->Recording_id
I already make the function which the user can only see and play the recording assigned to him/her. My problem now is the user could also share that recording to someone else. I already done that, what I do is loading the the assigned recording to the user, and in his/her dashboard there's a public link for the video, say
<a href="http://localhost/callrec/public/recording/{!! $value->recordID !!}">See Public Link</a>
as you can see I'm using Blade Template. As you can that
$value->recordID
is my recording ID which is a resource, so let's say that link directed to
http://localhost/callrec/public/recording/1
Then that link is public and the user can share it. But there's a risk, when he/she shared this that id
from the link can be altered, let's say http://localhost/callrec/public/recording/4
and if that id
is existing it can be accessed which is supposed to be not coz the user only shared the id = 1
. How to approach problems like this? Any ideas and suggestions? thanks!