Access Controls protect new users from hurting themselves.
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) 2018 - 2020
|
Portions created by the Initial Developer are Copyright (C) 2018 - 2022
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -145,6 +145,11 @@
|
|||||||
$access_control_uuid = uuid();
|
$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
|
//prepare the array
|
||||||
$array['access_controls'][0]['access_control_uuid'] = $access_control_uuid;
|
$array['access_controls'][0]['access_control_uuid'] = $access_control_uuid;
|
||||||
$array['access_controls'][0]['access_control_name'] = $access_control_name;
|
$array['access_controls'][0]['access_control_name'] = $access_control_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user