Check for permissions that have a null domain_uuid.
This commit is contained in:
parent
af20b81b0e
commit
b6d94b46e0
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
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.
|
||||
|
||||
Contributor(s):
|
||||
|
|
@ -307,11 +307,12 @@ require_once "resources/require.php";
|
|||
foreach($_SESSION["groups"] as $field) {
|
||||
if (strlen($field['group_name']) > 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 {
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue