Access Controls protect new users from hurting themselves.

This commit is contained in:
FusionPBX
2022-05-28 17:19:37 -06:00
committed by GitHub
parent a0718f367a
commit 54a5fb5a2b

View File

@@ -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) 2018 - 2020
Portions created by the Initial Developer are Copyright (C) 2018 - 2022
the Initial Developer. All Rights Reserved.
*/
@@ -145,6 +145,11 @@
$access_control_uuid = uuid();
}
//protect users by forcing default to deny
if ($access_control_name == 'providers' || $access_control_name == 'domains') {
$access_control_default = 'deny';
}
//prepare the array
$array['access_controls'][0]['access_control_uuid'] = $access_control_uuid;
$array['access_controls'][0]['access_control_name'] = $access_control_name;