diff --git a/app/access_controls/access_control_edit.php b/app/access_controls/access_control_edit.php index 88f14a5b4..f6924d952 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 d8952b3af..120b3755b 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 c8dc7c820..e14e91eca 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 4171dff8c..adc970271 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 0399366b3..665ad55a8 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 8ace35f70..8640239be 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 f4f0316d9..0daae68ac 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 c9efc7de5..57729da16 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 8121c891e..4774efe77 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 dd60bc4d3..0a279a1c5 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 392bf147d..a6c5652c1 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 d4fda16e7..62f49e37b 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 ea23399a3..8cd56918e 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 4eed1646d..394d36d6e 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 a45e8eb33..cf75822b8 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 327a7ade4..8d8e5eb8b 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 b1199e290..bb3b56e38 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 9daa4304e..03f31f753 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 f49b79622..b3678638d 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 49cbcd7f8..d21c98b5a 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 2501ed9c1..8c8c3bf75 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 06dcd620e..3f00a0ff8 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 ec9f4fcb9..085bac405 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 18dd0d515..6bb984d61 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 faecefaaf..29d4c2aee 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 36677e54b..e01964769 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 58221553b..e826165dd 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 2faa099b0..ea0e4b1b2 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 55c924807..a2da84005 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 ba07af082..53ddbca54 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 68551fbad..60c2d93ab 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 1bb241987..721036854 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 670eb1e78..1d36f892a 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 0c7c0ba19..3bbd103a8 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 ef2f46759..196961622 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 62bf64bc7..47ab52cae 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 628dbfccd..5fa2a73ba 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 793de49ff..7eebbe372 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 02efc22aa..5f8f04606 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 71cca7cc5..b46297099 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 825f08b5a..91748a79d 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 b396935e8..ef5e86612 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 14795180b..dae440fa5 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 0a9f67d63..2c29737bf 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 755ce5c7e..06192236b 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 d515b2880..cde80f3ff 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 4ee2dd246..5e2e89c1b 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 118aaf169..27b30ea21 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 92a21056b..a271583cf 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 553eaba25..f593d7e41 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 e7f737501..902621332 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 76ad16f2a..e03054072 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 fb4e29e0b..49beae53b 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 f9afe03b2..77fbaae19 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 69f2c0428..f9dd9adae 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 8988e34c3..5166530e1 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 cd0567125..241d5cebb 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 fd85ebd3b..549e4002c 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 d7ce10f69..e66ecaaea 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 69ad05d14..0c2c36738 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 03682f89c..f8001e4ea 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 31403eef0..2b89a6df4 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 e9bff22af..015445ce8 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 767650820..6fb8050c5 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 4108209b1..9426121f2 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 dc4ec6ec4..37d57e5bd 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 c34c4a0e3..a4d63d4d2 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 f6df18730..614fba29f 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 a32e4c8f5..7522fc1e0 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 37345c163..e0323d4c9 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; }