Check for permissions that have a null domain_uuid.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2013
|
Portions created by the Initial Developer are Copyright (C) 2008-2014
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -307,11 +307,12 @@ require_once "resources/require.php";
|
|||||||
foreach($_SESSION["groups"] as $field) {
|
foreach($_SESSION["groups"] as $field) {
|
||||||
if (strlen($field['group_name']) > 0) {
|
if (strlen($field['group_name']) > 0) {
|
||||||
if ($x == 0) {
|
if ($x == 0) {
|
||||||
$sql .= "where (domain_uuid = '".$domain_uuid."' and group_name = '".$field['group_name']."') ";
|
$sql .= "where (domain_uuid = '".$domain_uuid."' and domain_uuid = null) ";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$sql .= "or (domain_uuid = '".$domain_uuid."' and group_name = '".$field['group_name']."') ";
|
$sql .= "or (domain_uuid = '".$domain_uuid."' and domain_uuid = null) ";
|
||||||
}
|
}
|
||||||
|
$sql .= "or group_name = '".$field['group_name']."' ";
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user