Audited the permissions names. Permissions names are to be non plural.

This commit is contained in:
Mark Crane
2013-09-21 21:45:35 +00:00
parent bf52a675a0
commit 041a375b62
93 changed files with 266 additions and 266 deletions

View File

@@ -38,38 +38,38 @@
$apps[$x]['menu'][0]['groups'][] = 'user';
//permission details
$apps[$x]['permissions'][0]['name'] = 'conferences_active_view';
$apps[$x]['permissions'][0]['name'] = 'conference_active_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = '2d857bbb-43b9-b8f7-a138-642868e0453a';
$apps[$x]['permissions'][0]['groups'][] = 'user';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
$apps[$x]['permissions'][2]['name'] = 'conferences_active_lock';
$apps[$x]['permissions'][2]['name'] = 'conference_active_lock';
$apps[$x]['permissions'][2]['groups'][] = 'user';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
$apps[$x]['permissions'][3]['name'] = 'conferences_active_kick';
$apps[$x]['permissions'][3]['name'] = 'conference_active_kick';
$apps[$x]['permissions'][3]['groups'][] = 'user';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
$apps[$x]['permissions'][4]['name'] = 'conferences_active_energy';
$apps[$x]['permissions'][4]['name'] = 'conference_active_energy';
//$apps[$x]['permissions'][4]['groups'][] = 'user';
//$apps[$x]['permissions'][4]['groups'][] = 'admin';
//$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
$apps[$x]['permissions'][5]['name'] = 'conferences_active_volume';
$apps[$x]['permissions'][5]['name'] = 'conference_active_volume';
//$apps[$x]['permissions'][5]['groups'][] = 'user';
//$apps[$x]['permissions'][5]['groups'][] = 'admin';
//$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
$apps[$x]['permissions'][6]['name'] = 'conferences_active_gain';
$apps[$x]['permissions'][6]['name'] = 'conference_active_gain';
//$apps[$x]['permissions'][6]['groups'][] = 'user';
//$apps[$x]['permissions'][6]['groups'][] = 'admin';
//$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
$apps[$x]['permissions'][7]['name'] = 'conferences_active_mute';
$apps[$x]['permissions'][7]['name'] = 'conference_active_mute';
$apps[$x]['permissions'][7]['groups'][] = 'user';
$apps[$x]['permissions'][7]['groups'][] = 'admin';
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
@@ -79,12 +79,12 @@
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
$apps[$x]['permissions'][8]['name'] = 'conferences_active_video';
$apps[$x]['permissions'][8]['name'] = 'conference_active_video';
$apps[$x]['permissions'][8]['groups'][] = 'user';
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
$apps[$x]['permissions'][9]['name'] = 'conferences_active_advanced_view';
$apps[$x]['permissions'][9]['name'] = 'conference_active_advanced_view';
$apps[$x]['permissions'][9]['groups'][] = 'admin';
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
?>

View File

@@ -41,7 +41,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('conferences_active_view')) {
if (permission_exists('conference_active_view')) {
//access granted
}
else {

View File

@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('conferences_active_view')) {
if (permission_exists('conference_active_view')) {
//access granted
}
else {

View File

@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('conferences_active_view')) {
if (permission_exists('conference_active_view')) {
//access granted
}
else {
@@ -127,7 +127,7 @@ else {
else {
echo " ".$text['label-not-recording']."  ";
}
if (permission_exists('conferences_active_lock')) {
if (permission_exists('conference_active_lock')) {
if ($locked == "true") {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unlock');\" value='".$text['label-unlock']."'>\n";
}
@@ -159,7 +159,7 @@ else {
echo "<th>".$text['label-speak']."</th>\n";
echo "<th>".$text['label-talking']."</th>\n";
echo "<th>".$text['label-last-talk']."</th>\n";
if (permission_exists('conferences_active_video')) {
if (permission_exists('conference_active_video')) {
echo "<th>".$text['label-video']."</th>\n";
}
echo "<th>".$text['label-floor']."</th>\n";
@@ -219,7 +219,7 @@ else {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-no']."</td>\n";
}
echo "<td valign='top' class='".$row_style[$c]."'>$last_talking_formatted</td>\n";
if (permission_exists('conferences_active_video')) {
if (permission_exists('conference_active_video')) {
if ($flag_has_video == "true") {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-yes']."</td>\n";
}
@@ -235,27 +235,27 @@ else {
}
echo "<td valign='top' class='".$row_style[$c]."' style='text-align:right;'>\n";
//energy
if (permission_exists('conferences_active_energy')) {
if (permission_exists('conference_active_energy')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='+".$text['label-energy']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='-".$text['label-energy']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">+".$text['label-energy']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">-".$text['label-energy']."</a>&nbsp;\n";
}
//volume
if (permission_exists('conferences_active_volume')) {
if (permission_exists('conference_active_volume')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\" value='+".$text['label-volume']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\" value='-".$text['label-volume']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\">+".$text['label-volume']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\">-".$text['label-volume']."</a>&nbsp;\n";
}
if (permission_exists('conferences_active_gain')) {
if (permission_exists('conference_active_gain')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='+".$text['label-gain']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='-".$text['label-gain']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">+".$text['label-gain']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">-".$text['label-gain']."</a>&nbsp;\n";
}
//mute and unmute
if (permission_exists('conferences_active_mute')) {
if (permission_exists('conference_active_mute')) {
if ($flag_can_speak == "true") {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=mute&id=".$id."');\" value='".$text['label-mute']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('');\">".$text['label-mute']."</a>&nbsp;\n";
@@ -277,7 +277,7 @@ else {
}
}
//kick someone from the conference
if (permission_exists('conferences_active_kick')) {
if (permission_exists('conference_active_kick')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\" value='".$text['label-kick']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\">".$text['label-kick']."</a>&nbsp;\n";
}

View File

@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('conferences_active_advanced_view')) {
if (permission_exists('conference_active_advanced_view')) {
//access granted
}
else {

View File

@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('conferences_active_advanced_view')) {
if (permission_exists('conference_active_advanced_view')) {
//access granted
}
else {