diff --git a/app/access_controls/access_control_edit.php b/app/access_controls/access_control_edit.php index 88f14a5b43..f6924d9524 100644 --- a/app/access_controls/access_control_edit.php +++ b/app/access_controls/access_control_edit.php @@ -58,7 +58,7 @@ if (count($_POST) > 0 && empty($_POST["persistformvar"])) { //check permissions - if (!permission_exists('access_control_add') || !permission_exists('access_control_edit')) { + if (!(permission_exists('access_control_add') || permission_exists('access_control_edit'))) { echo "access denied"; exit; } diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php index d8952b3af5..120b3755b5 100644 --- a/app/call_centers/call_center_agent_edit.php +++ b/app/call_centers/call_center_agent_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('call_center_agent_add') || !permission_exists('call_center_agent_edit')) { + if (!(permission_exists('call_center_agent_add') || permission_exists('call_center_agent_edit'))) { echo "access denied"; exit; } diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index c8dc7c8202..e14e91eca1 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('call_center_queue_add') || !permission_exists('call_center_queue_edit')) { + if (!(permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit'))) { echo "access denied"; exit; } diff --git a/app/call_centers/cmd.php b/app/call_centers/cmd.php index 4171dff8c4..adc9702713 100644 --- a/app/call_centers/cmd.php +++ b/app/call_centers/cmd.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('call_center_queue_add') || !permission_exists('call_center_queue_edit')) { + if (!(permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit'))) { echo "access denied"; exit; } diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index 0399366b38..665ad55a8b 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -30,7 +30,7 @@ //check permissions require_once "resources/check_auth.php"; - if (!permission_exists('call_flow_add') || !permission_exists('call_flow_edit')) { + if (!(permission_exists('call_flow_add') || permission_exists('call_flow_edit'))) { echo "access denied"; exit; } diff --git a/app/call_forward/call_forward.php b/app/call_forward/call_forward.php index 8ace35f704..8640239bea 100644 --- a/app/call_forward/call_forward.php +++ b/app/call_forward/call_forward.php @@ -34,7 +34,7 @@ require_once "resources/paging.php"; //check permissions - if (!permission_exists('follow_me') || !permission_exists('call_forward') || !permission_exists('do_not_disturb')) { + if (!(permission_exists('follow_me') || !permission_exists('call_forward') || permission_exists('do_not_disturb'))) { echo "access denied"; exit; } diff --git a/app/call_forward/call_forward_edit.php b/app/call_forward/call_forward_edit.php index f4f0316d9d..0daae68acb 100644 --- a/app/call_forward/call_forward_edit.php +++ b/app/call_forward/call_forward_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('follow_me') || !permission_exists('call_forward') || !permission_exists('do_not_disturb')) { + if (!(permission_exists('follow_me') || !permission_exists('call_forward') || permission_exists('do_not_disturb'))) { echo "access denied"; exit; } diff --git a/app/call_forward/resources/dashboard/call_forward.php b/app/call_forward/resources/dashboard/call_forward.php index c9efc7de5c..57729da161 100644 --- a/app/call_forward/resources/dashboard/call_forward.php +++ b/app/call_forward/resources/dashboard/call_forward.php @@ -5,7 +5,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('follow_me') || !permission_exists('call_forward') || !permission_exists('do_not_disturb')) { + if (!(permission_exists('follow_me') || !permission_exists('call_forward') || permission_exists('do_not_disturb'))) { echo "access denied"; exit; } diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php index 8121c891e6..4774efe772 100644 --- a/app/conference_centers/conference_center_edit.php +++ b/app/conference_centers/conference_center_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_center_add') || !permission_exists('conference_center_edit')) { + if (!(permission_exists('conference_center_add') || permission_exists('conference_center_edit'))) { echo "access denied"; exit; } diff --git a/app/conference_centers/conference_room_edit.php b/app/conference_centers/conference_room_edit.php index dd60bc4d3b..0a279a1c58 100644 --- a/app/conference_centers/conference_room_edit.php +++ b/app/conference_centers/conference_room_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_room_add') || !permission_exists('conference_room_edit')) { + if (!(permission_exists('conference_room_add') || permission_exists('conference_room_edit'))) { echo "access denied"; exit; } diff --git a/app/conference_controls/conference_control_detail_edit.php b/app/conference_controls/conference_control_detail_edit.php index 392bf147db..a6c5652c13 100644 --- a/app/conference_controls/conference_control_detail_edit.php +++ b/app/conference_controls/conference_control_detail_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_control_detail_add') || !permission_exists('conference_control_detail_edit')) { + if (!(permission_exists('conference_control_detail_add') || permission_exists('conference_control_detail_edit'))) { echo "access denied"; exit; } diff --git a/app/conference_controls/conference_control_edit.php b/app/conference_controls/conference_control_edit.php index d4fda16e74..62f49e37b8 100644 --- a/app/conference_controls/conference_control_edit.php +++ b/app/conference_controls/conference_control_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_control_add') || !permission_exists('conference_control_edit')) { + if (!(permission_exists('conference_control_add') || permission_exists('conference_control_edit'))) { echo "access denied"; exit; } diff --git a/app/conference_profiles/conference_profile_edit.php b/app/conference_profiles/conference_profile_edit.php index ea23399a30..8cd56918e1 100644 --- a/app/conference_profiles/conference_profile_edit.php +++ b/app/conference_profiles/conference_profile_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_profile_add') || !permission_exists('conference_profile_edit')) { + if (!(permission_exists('conference_profile_add') || permission_exists('conference_profile_edit'))) { echo "access denied"; exit; } diff --git a/app/conference_profiles/conference_profile_param_edit.php b/app/conference_profiles/conference_profile_param_edit.php index 4eed1646d3..394d36d6e0 100644 --- a/app/conference_profiles/conference_profile_param_edit.php +++ b/app/conference_profiles/conference_profile_param_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_profile_param_add') || !permission_exists('conference_profile_param_edit')) { + if (!(permission_exists('conference_profile_param_add') || permission_exists('conference_profile_param_edit'))) { echo "access denied"; exit; } diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php index a45e8eb338..cf75822b84 100644 --- a/app/conferences/conference_edit.php +++ b/app/conferences/conference_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('conference_add') || !permission_exists('conference_edit')) { + if (!(permission_exists('conference_add') || permission_exists('conference_edit'))) { echo "access denied"; exit; } diff --git a/app/database_transactions/database_transaction_edit.php b/app/database_transactions/database_transaction_edit.php index 327a7ade46..8d8e5eb8bb 100644 --- a/app/database_transactions/database_transaction_edit.php +++ b/app/database_transactions/database_transaction_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('database_transaction_add') || !permission_exists('database_transaction_edit')) { + if (!(permission_exists('database_transaction_add') || permission_exists('database_transaction_edit'))) { echo "access denied"; exit; } diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index b1199e2905..bb3b56e386 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('destination_add') || !permission_exists('destination_edit')) { + if (!(permission_exists('destination_add') || permission_exists('destination_edit'))) { echo "access denied"; exit; } diff --git a/app/devices/cmd.php b/app/devices/cmd.php index 9daa4304ef..03f31f7533 100644 --- a/app/devices/cmd.php +++ b/app/devices/cmd.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists("device_key_add") || !permission_exists("device_key_edit")) { + if (!(permission_exists('device_key_add') || permission_exists('device_key_edit'))) { echo "access denied"; exit; } diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index f49b796220..b3678638d4 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -27,7 +27,7 @@ //check permissions require_once "resources/check_auth.php"; - if (!permission_exists('device_add') || !permission_exists('device_edit')) { + if (!(permission_exists('device_add') || permission_exists('device_edit'))) { echo "access denied"; exit; } diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index 49cbcd7f8d..d21c98b5a8 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -28,7 +28,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('device_profile_add') || !permission_exists('device_profile_edit')) { + if (!(permission_exists('device_profile_add') || permission_exists('device_profile_edit'))) { echo "access denied"; exit; } diff --git a/app/devices/device_vendor_edit.php b/app/devices/device_vendor_edit.php index 2501ed9c1f..8c8c3bf751 100644 --- a/app/devices/device_vendor_edit.php +++ b/app/devices/device_vendor_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('device_vendor_add') || !permission_exists('device_vendor_edit')) { + if (!(permission_exists('device_vendor_add') || permission_exists('device_vendor_edit'))) { echo "access denied"; exit; } diff --git a/app/devices/device_vendor_function_edit.php b/app/devices/device_vendor_function_edit.php index 06dcd620ef..3f00a0ff81 100644 --- a/app/devices/device_vendor_function_edit.php +++ b/app/devices/device_vendor_function_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('device_vendor_function_add') || !permission_exists('device_vendor_function_edit')) { + if (!(permission_exists('device_vendor_function_add') || permission_exists('device_vendor_function_edit'))) { echo "access denied"; exit; } diff --git a/app/dialplans/dialplans.php b/app/dialplans/dialplans.php index ec9f4fcb95..085bac4052 100644 --- a/app/dialplans/dialplans.php +++ b/app/dialplans/dialplans.php @@ -31,7 +31,7 @@ require_once "resources/paging.php"; //check permissions - if (!permission_exists('dialplan_view') || !permission_exists('inbound_route_view') || !permission_exists('outbound_route_view')) { + if (!(permission_exists('dialplan_view') || !permission_exists('inbound_route_view') || permission_exists('outbound_route_view'))) { echo "access denied"; exit; } diff --git a/app/email_queue/email_queue_edit.php b/app/email_queue/email_queue_edit.php index 18dd0d5154..6bb984d61d 100644 --- a/app/email_queue/email_queue_edit.php +++ b/app/email_queue/email_queue_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('email_queue_add') || !permission_exists('email_queue_edit')) { + if (!(permission_exists('email_queue_add') || permission_exists('email_queue_edit'))) { echo "access denied"; exit; } diff --git a/app/event_guard/event_guard_log_edit.php b/app/event_guard/event_guard_log_edit.php index faecefaafe..29d4c2aee3 100644 --- a/app/event_guard/event_guard_log_edit.php +++ b/app/event_guard/event_guard_log_edit.php @@ -25,7 +25,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('event_guard_log_add') || !permission_exists('event_guard_log_edit')) { + if (!(permission_exists('event_guard_log_add') || permission_exists('event_guard_log_edit'))) { echo "access denied"; exit; } diff --git a/app/extension_settings/extension_setting_edit.php b/app/extension_settings/extension_setting_edit.php index 36677e54ba..e01964769b 100644 --- a/app/extension_settings/extension_setting_edit.php +++ b/app/extension_settings/extension_setting_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('extension_setting_add') || !permission_exists('extension_setting_edit')) { + if (!(permission_exists('extension_setting_add') || permission_exists('extension_setting_edit'))) { echo "access denied"; exit; } diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 58221553b9..e826165dd6 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('extension_add') || !permission_exists('extension_edit')) { + if (!(permission_exists('extension_add') || permission_exists('extension_edit'))) { echo "access denied"; exit; } diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 2faa099b01..ea0e4b1b29 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('fax_extension_add') || !permission_exists('fax_extension_edit') || !permission_exists('fax_extension_delete')) { + if (!(permission_exists('fax_extension_add') || !permission_exists('fax_extension_edit') || permission_exists('fax_extension_delete'))) { echo "access denied"; exit; } diff --git a/app/fax_queue/fax_queue_edit.php b/app/fax_queue/fax_queue_edit.php index 55c9248070..a2da840054 100644 --- a/app/fax_queue/fax_queue_edit.php +++ b/app/fax_queue/fax_queue_edit.php @@ -27,7 +27,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('fax_queue_add') || !permission_exists('fax_queue_edit')) { + if (!(permission_exists('fax_queue_add') || permission_exists('fax_queue_edit'))) { echo "access denied"; exit; } diff --git a/app/fifo/fifo_edit.php b/app/fifo/fifo_edit.php index ba07af0827..53ddbca54f 100644 --- a/app/fifo/fifo_edit.php +++ b/app/fifo/fifo_edit.php @@ -27,7 +27,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('fifo_add') || !permission_exists('fifo_edit')) { + if (!(permission_exists('fifo_add') || permission_exists('fifo_edit'))) { echo "access denied"; exit; } diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 68551fbad8..60c2d93ab4 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('gateway_add') || !permission_exists('gateway_edit')) { + if (!(permission_exists('gateway_add') || permission_exists('gateway_edit'))) { echo "access denied"; exit; } diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index 1bb2419872..7210368549 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('ivr_menu_add') || !permission_exists('ivr_menu_edit')) { + if (!(permission_exists('ivr_menu_add') || permission_exists('ivr_menu_edit'))) { echo "access denied"; exit; } diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php index 670eb1e780..1d36f892a5 100644 --- a/app/modules/module_edit.php +++ b/app/modules/module_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('module_add') || !permission_exists('module_edit')) { + if (!(permission_exists('module_add') || permission_exists('module_edit'))) { echo "access denied"; exit; } diff --git a/app/music_on_hold/music_on_hold_edit.php b/app/music_on_hold/music_on_hold_edit.php index 0c7c0ba193..3bbd103a88 100644 --- a/app/music_on_hold/music_on_hold_edit.php +++ b/app/music_on_hold/music_on_hold_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('music_on_hold_add') || !permission_exists('music_on_hold_edit')) { + if (!(permission_exists('music_on_hold_add') || permission_exists('music_on_hold_edit'))) { echo "access denied"; exit; } diff --git a/app/number_translations/cmd.php b/app/number_translations/cmd.php index ef2f46759f..1969616221 100644 --- a/app/number_translations/cmd.php +++ b/app/number_translations/cmd.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('number_translation_add') || !permission_exists('number_translation_edit')) { + if (!(permission_exists('number_translation_add') || permission_exists('number_translation_edit'))) { echo "access denied"; exit; } diff --git a/app/number_translations/number_translation_edit.php b/app/number_translations/number_translation_edit.php index 62bf64bc7d..47ab52caeb 100644 --- a/app/number_translations/number_translation_edit.php +++ b/app/number_translations/number_translation_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('number_translation_add') || !permission_exists('number_translation_edit')) { + if (!(permission_exists('number_translation_add') || permission_exists('number_translation_edit'))) { echo "access denied"; exit; } diff --git a/app/pin_numbers/pin_number_edit.php b/app/pin_numbers/pin_number_edit.php index 628dbfccd8..5fa2a73baf 100644 --- a/app/pin_numbers/pin_number_edit.php +++ b/app/pin_numbers/pin_number_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('pin_number_add') || !permission_exists('pin_number_edit')) { + if (!(permission_exists('pin_number_add') || permission_exists('pin_number_edit'))) { echo "access denied"; exit; } diff --git a/app/recordings/recording_edit.php b/app/recordings/recording_edit.php index 793de49ffc..7eebbe3723 100644 --- a/app/recordings/recording_edit.php +++ b/app/recordings/recording_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('recording_add') || !permission_exists('recording_edit')) { + if (!(permission_exists('recording_add') || permission_exists('recording_edit'))) { echo "access denied"; exit; } diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index 02efc22aa0..5f8f046062 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists("registration_domain") || !permission_exists("registration_all")) { + if (!(permission_exists('registration_domain') || permission_exists('registration_all'))) { echo "access denied"; exit; } diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 71cca7cc59..b46297099d 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -31,7 +31,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('ring_group_add') || !permission_exists('ring_group_edit')) { + if (!(permission_exists('ring_group_add') || permission_exists('ring_group_edit'))) { echo "access denied"; exit; } diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index 825f08b5ac..91748a79da 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('sip_profile_add') || !permission_exists('sip_profile_edit')) { + if (!(permission_exists('sip_profile_add') || permission_exists('sip_profile_edit'))) { echo "access denied"; exit; } diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index b396935e8d..ef5e866129 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('system_status_sofia_status') || !permission_exists('system_status_sofia_status_profile')) { + if (!(permission_exists('system_status_sofia_status') || permission_exists('system_status_sofia_status_profile'))) { echo "access denied"; exit; } diff --git a/app/sofia_global_settings/sofia_global_setting_edit.php b/app/sofia_global_settings/sofia_global_setting_edit.php index 14795180bc..dae440fa52 100644 --- a/app/sofia_global_settings/sofia_global_setting_edit.php +++ b/app/sofia_global_settings/sofia_global_setting_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('sofia_global_setting_add') || !permission_exists('sofia_global_setting_edit')) { + if (!(permission_exists('sofia_global_setting_add') || permission_exists('sofia_global_setting_edit'))) { echo "access denied"; exit; } diff --git a/app/streams/stream_edit.php b/app/streams/stream_edit.php index 0a9f67d630..2c29737bf1 100644 --- a/app/streams/stream_edit.php +++ b/app/streams/stream_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('stream_add') || !permission_exists('stream_edit')) { + if (!(permission_exists('stream_add') || permission_exists('stream_edit'))) { echo "access denied"; exit; } diff --git a/app/switch/sounds.php b/app/switch/sounds.php index 755ce5c7e9..06192236b1 100644 --- a/app/switch/sounds.php +++ b/app/switch/sounds.php @@ -32,7 +32,7 @@ require_once "resources/check_auth.php"; //check the permission - if (!permission_exists('recording_play') || !permission_exists('recording_download')) { + if (!(permission_exists('recording_play') || permission_exists('recording_download'))) { echo "access denied"; exit; } diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index d515b28808..cde80f3ff0 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('time_condition_add') || !permission_exists('time_condition_edit')) { + if (!(permission_exists('time_condition_add') || permission_exists('time_condition_edit'))) { echo "access denied"; exit; } diff --git a/app/vars/var_edit.php b/app/vars/var_edit.php index 4ee2dd246c..5e2e89c1bb 100644 --- a/app/vars/var_edit.php +++ b/app/vars/var_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('var_add') || !permission_exists('var_edit')) { + if (!(permission_exists('var_add') || permission_exists('var_edit'))) { echo "access denied"; exit; } diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 118aaf1693..27b30ea21c 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('voicemail_add') || !permission_exists('voicemail_edit')) { + if (!(permission_exists('voicemail_add') || permission_exists('voicemail_edit'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_address_edit.php b/core/contacts/contact_address_edit.php index 92a21056b3..a271583cfd 100644 --- a/core/contacts/contact_address_edit.php +++ b/core/contacts/contact_address_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_address_edit') || !permission_exists('contact_address_add')) { + if (!(permission_exists('contact_address_edit') || permission_exists('contact_address_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_edit.php b/core/contacts/contact_edit.php index 553eaba25b..f593d7e41e 100644 --- a/core/contacts/contact_edit.php +++ b/core/contacts/contact_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_add') || !permission_exists('contact_edit')) { + if (!(permission_exists('contact_add') || permission_exists('contact_edit'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_email_edit.php b/core/contacts/contact_email_edit.php index e7f7375016..9026213323 100644 --- a/core/contacts/contact_email_edit.php +++ b/core/contacts/contact_email_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_email_edit') || !permission_exists('contact_email_add')) { + if (!(permission_exists('contact_email_edit') || permission_exists('contact_email_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_note_edit.php b/core/contacts/contact_note_edit.php index 76ad16f2a8..e030540726 100644 --- a/core/contacts/contact_note_edit.php +++ b/core/contacts/contact_note_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_note_edit') || !permission_exists('contact_note_add')) { + if (!(permission_exists('contact_note_edit') || permission_exists('contact_note_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_phone_edit.php b/core/contacts/contact_phone_edit.php index fb4e29e0b1..49beae53bd 100644 --- a/core/contacts/contact_phone_edit.php +++ b/core/contacts/contact_phone_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_phone_edit') || !permission_exists('contact_phone_add')) { + if (!(permission_exists('contact_phone_edit') || permission_exists('contact_phone_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_relation_edit.php b/core/contacts/contact_relation_edit.php index f9afe03b28..77fbaae196 100644 --- a/core/contacts/contact_relation_edit.php +++ b/core/contacts/contact_relation_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_relation_edit') || !permission_exists('contact_relation_add')) { + if (!(permission_exists('contact_relation_edit') || permission_exists('contact_relation_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_setting_edit.php b/core/contacts/contact_setting_edit.php index 69f2c0428d..f9dd9adaec 100644 --- a/core/contacts/contact_setting_edit.php +++ b/core/contacts/contact_setting_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_setting_edit') || !permission_exists('contact_setting_add')) { + if (!(permission_exists('contact_setting_edit') || permission_exists('contact_setting_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_time_edit.php b/core/contacts/contact_time_edit.php index 8988e34c30..5166530e1b 100644 --- a/core/contacts/contact_time_edit.php +++ b/core/contacts/contact_time_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_time_edit') || !permission_exists('contact_time_add')) { + if (!(permission_exists('contact_time_edit') || permission_exists('contact_time_add'))) { echo "access denied"; exit; } diff --git a/core/contacts/contact_url_edit.php b/core/contacts/contact_url_edit.php index cd05671252..241d5cebbb 100644 --- a/core/contacts/contact_url_edit.php +++ b/core/contacts/contact_url_edit.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('contact_url_edit') || !permission_exists('contact_url_add')) { + if (!(permission_exists('contact_url_edit') || permission_exists('contact_url_add'))) { echo "access denied"; exit; } diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index fd85ebd3b1..549e4002c8 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('dashboard_add') || !permission_exists('dashboard_edit')) { + if (!(permission_exists('dashboard_add') || permission_exists('dashboard_edit'))) { echo "access denied"; exit; } diff --git a/core/dashboard/dashboard_widget_edit.php b/core/dashboard/dashboard_widget_edit.php index d7ce10f690..e66ecaaea9 100644 --- a/core/dashboard/dashboard_widget_edit.php +++ b/core/dashboard/dashboard_widget_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('dashboard_widget_add') || !permission_exists('dashboard_widget_edit')) { + if (!(permission_exists('dashboard_widget_add') || permission_exists('dashboard_widget_edit'))) { echo "access denied"; exit; } diff --git a/core/databases/database_edit.php b/core/databases/database_edit.php index 69ad05d141..0c2c367388 100644 --- a/core/databases/database_edit.php +++ b/core/databases/database_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('database_add') || !permission_exists('database_edit')) { + if (!(permission_exists('database_add') || permission_exists('database_edit'))) { echo "access denied"; exit; } diff --git a/core/default_settings/default_setting_edit.php b/core/default_settings/default_setting_edit.php index 03682f89c9..f8001e4ea7 100644 --- a/core/default_settings/default_setting_edit.php +++ b/core/default_settings/default_setting_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('default_setting_add') || !permission_exists('default_setting_edit')) { + if (!(permission_exists('default_setting_add') || permission_exists('default_setting_edit'))) { echo "access denied"; exit; } diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php index 31403eef0c..2b89a6df4d 100644 --- a/core/domain_settings/domain_setting_edit.php +++ b/core/domain_settings/domain_setting_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('domain_setting_add') || !permission_exists('domain_setting_edit')) { + if (!(permission_exists('domain_setting_add') || permission_exists('domain_setting_edit'))) { echo "access denied"; exit; } diff --git a/core/email_templates/email_template_edit.php b/core/email_templates/email_template_edit.php index e9bff22af8..015445ce85 100644 --- a/core/email_templates/email_template_edit.php +++ b/core/email_templates/email_template_edit.php @@ -26,7 +26,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('email_template_add') || !permission_exists('email_template_edit')) { + if (!(permission_exists('email_template_add') || permission_exists('email_template_edit'))) { echo "access denied"; exit; } diff --git a/core/groups/group_edit.php b/core/groups/group_edit.php index 7676508209..6fb8050c5d 100644 --- a/core/groups/group_edit.php +++ b/core/groups/group_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('group_add') || !permission_exists('group_edit')) { + if (!(permission_exists('group_add') || permission_exists('group_edit'))) { echo "access denied"; exit; } diff --git a/core/menu/menu_edit.php b/core/menu/menu_edit.php index 4108209b13..9426121f20 100644 --- a/core/menu/menu_edit.php +++ b/core/menu/menu_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('menu_add') || !permission_exists('menu_edit')) { + if (!(permission_exists('menu_add') || permission_exists('menu_edit'))) { echo "access denied"; exit; } diff --git a/core/menu/menu_item_edit.php b/core/menu/menu_item_edit.php index dc4ec6ec47..37d57e5bdd 100644 --- a/core/menu/menu_item_edit.php +++ b/core/menu/menu_item_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('menu_add') || !permission_exists('menu_edit')) { + if (!(permission_exists('menu_add') || permission_exists('menu_edit'))) { echo "access denied"; return; } diff --git a/core/menu/menu_item_list.php b/core/menu/menu_item_list.php index c34c4a0e3d..a4d63d4d2b 100644 --- a/core/menu/menu_item_list.php +++ b/core/menu/menu_item_list.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('menu_add') || !permission_exists('menu_edit') || !permission_exists('menu_delete')) { + if (!(permission_exists('menu_add') || !permission_exists('menu_edit') || permission_exists('menu_delete'))) { echo "access denied"; exit; } diff --git a/core/menu/menu_reload.php b/core/menu/menu_reload.php index f6df18730c..614fba29ff 100644 --- a/core/menu/menu_reload.php +++ b/core/menu/menu_reload.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('menu_add') || !permission_exists('menu_edit')) { + if (!(permission_exists('menu_add') || permission_exists('menu_edit'))) { echo "access denied"; return; } diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index a32e4c8f50..7522fc1e0d 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -152,7 +152,7 @@ } else { require_once "resources/check_auth.php"; - if (!permission_exists('upgrade_schema') || !permission_exists('upgrade_source')) { + if (!(permission_exists('upgrade_schema') || permission_exists('upgrade_source'))) { echo "access denied"; exit; } diff --git a/core/user_settings/user_setting_edit.php b/core/user_settings/user_setting_edit.php index 37345c1635..e0323d4c9c 100644 --- a/core/user_settings/user_setting_edit.php +++ b/core/user_settings/user_setting_edit.php @@ -29,7 +29,7 @@ require_once "resources/check_auth.php"; //check permissions - if (!permission_exists('user_setting_add') || !permission_exists('user_setting_edit')) { + if (!(permission_exists('user_setting_add') || permission_exists('user_setting_edit'))) { echo "access denied"; exit; }