PluginProbe
Patchstack – WordPress & Plugins Security / 2.1.8
Patchstack – WordPress & Plugins Security v2.1.8
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/firewall.php +6 -1 2.1.72.1.8 View file →
@@ -659,10 +659,15 @@
659 659 if ( $bypass || ! is_user_logged_in() ) {
660 660 return false;
661 661 }
662 662
663 + // Get the whitelisted roles.
664 + $roles = $this->get_option( 'patchstack_basic_firewall_roles', array( 'administrator', 'editor', 'author' ) );
665 + if ( ! is_array ( $roles ) ) {
666 + return false;
667 + }
668 +
663 669 // Special scenario for super admins on a multisite environment.
664 - $roles = $this->get_option( 'patchstack_basic_firewall_roles', array( 'administrator', 'editor', 'author' ) );
665 670 if ( in_array( 'administrator', $roles ) && is_multisite() && is_super_admin() ) {
666 671 return true;
667 672 }
668 673