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 6cb84a39c7
commit 8f8fd3e3e8
93 changed files with 266 additions and 266 deletions
+3 -3
View File
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('variables_add') || permission_exists('variables_edit')) {
if (permission_exists('variable_add') || permission_exists('variable_edit')) {
//access granted
}
else {
@@ -91,7 +91,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//add or update the database
if ($_POST["persistformvar"] != "true") {
if ($action == "add" && permission_exists('variables_add')) {
if ($action == "add" && permission_exists('variable_add')) {
$var_uuid = uuid();
$sql = "insert into v_vars ";
$sql .= "(";
@@ -132,7 +132,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
return;
} //if ($action == "add")
if ($action == "update" && permission_exists('variables_edit')) {
if ($action == "update" && permission_exists('variable_edit')) {
$sql = "update v_vars set ";
$sql .= "var_name = '$var_name', ";
$sql .= "var_value = '$var_value', ";