Skip to content

Commit a1b8cd0

Browse files
If multisite use manage_network_options priviledge
Related to ActiveCampaign#11
1 parent 9dfe2f3 commit a1b8cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function send_test_email() {
7575
}
7676

7777
// We check that the current user is allowed to update settings.
78-
if ( ! current_user_can('manage_options') ) {
78+
if ( ( is_multisite() && ! current_user_can('manage_network_options') ) || ! current_user_can('manage_options') ) {
7979
wp_die(__('Cheatin’ uh?'));
8080
}
8181

@@ -140,7 +140,7 @@ function save_settings() {
140140
}
141141

142142
// We check that the current user is allowed to update settings.
143-
if ( ! current_user_can('manage_options') ) {
143+
if ( ( is_multisite() && ! current_user_can('manage_network_options') ) || ! current_user_can('manage_options') ) {
144144
wp_die(__('Cheatin’ uh?'));
145145
}
146146

0 commit comments

Comments
 (0)