Advertisement
soapee01

Voicemail User View Issue

Sep 6th, 2022
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | Source Code | 0 0
  1. --- a/app/voicemails/resources/classes/voicemail.php
  2. +++ b/app/voicemails/resources/classes/voicemail.php
  3. @@ -124,7 +124,9 @@
  4.                                 $sql = "select * from v_voicemails ";
  5.                                 $sql .= "where domain_uuid = :domain_uuid ";
  6.                                 if (is_uuid($this->voicemail_uuid)) {
  7. -                                       if (permission_exists('voicemail_delete')) {
  8. +                                       //soapee01 testing
  9. +                                       //changed voicemail_delete to voicemail_message_delete so that users can see their own VM box
  10. +                                       if (permission_exists('voicemail_message_delete')) {
  11.                                                 //view specific voicemail box usually reserved for an admin or superadmin
  12.                                                 $sql .= "and voicemail_uuid = :voicemail_uuid ";
  13.                                                 $parameters['voicemail_uuid'] = $this->voicemail_uuid;
  14. @@ -956,4 +958,4 @@ foreach ($_SESSION['user']['extension'] as $value) {
  15.  }
  16.  */
  17.  
  18. -?>
  19. \ No newline at end of file
  20. +?>
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement