Recordings Visibility for different users/contexts
Hi !
We have several users with own contexts. If the "user 1" with context "user1" make record of his call, he can see it in VisualPhonebook - Recordings, but the "user2" with context "user2" can also see it. Is it a bug or a future ?
The records in mysql table come with empty "context" field... But if i fill this field with context name "user1" or "user2" nothing changes - all recoring are visible to all users.
2.27 version - asterisk 1.4
Any ideas ?
We have several users with own contexts. If the "user 1" with context "user1" make record of his call, he can see it in VisualPhonebook - Recordings, but the "user2" with context "user2" can also see it. Is it a bug or a future ?
The records in mysql table come with empty "context" field... But if i fill this field with context name "user1" or "user2" nothing changes - all recoring are visible to all users.
2.27 version - asterisk 1.4
Any ideas ?
Comments
Best regards,
But i found the solution. I cut ***OR $admin=1*** part from recordings.php
$grid->set_condition("(ownerextension='$extension' OR $admin=1)");
and now only owner of current extension can see these recordings.
By the way, what kind of "admin" was here ?
Best regards,
Sergio.
My system work as the following - I have about 100 users and every user can make recordings, can see them and can delete ( add a button "delete" to the page ). Every night the script cleans /var/spool/asterisk/monitor/fop2 folder and mysql table so Users who need their records, must download them and store on local hosts. On my opinion it's the best way to give the ability to record and to keep server clean.
Best regards,
Sergio.
Anyways, I think that in regular cases, the "admin" user should be limited by panel context, as the panel context is thought to be used in multi tenant setups, and the admin granting access to other contexts is indeed a bug/problem.
Be sure you backup your recordings.php file so it does not get overwritten if you upgrade fop2 in the future!
Best regards,