mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Fix the recordings permissions
This commit is contained in:
@@ -27,14 +27,6 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('recording_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
@@ -93,6 +85,15 @@ require_once "resources/paging.php";
|
||||
}
|
||||
}
|
||||
|
||||
//check the permission
|
||||
if (permission_exists('recording_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//build a list of recordings
|
||||
$config_recording_list = '|';
|
||||
$i = 0;
|
||||
@@ -141,6 +142,9 @@ require_once "resources/paging.php";
|
||||
}
|
||||
}
|
||||
|
||||
//add paging
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//include the header
|
||||
require_once "resources/header.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user