From: Chuck Scott Date: Tue, 7 Jun 2016 18:14:38 +0000 (-0400) Subject: Now blocking adding a member with All Members permission when user is a logged in... X-Git-Tag: v1.0.11^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3f3593defdaa5efc5557d419e16708135074f9ec;p=WP-Plugins%2Fglm-member-db-contacts.git Now blocking adding a member with All Members permission when user is a logged in member. --- diff --git a/models/admin/contacts/index.php b/models/admin/contacts/index.php index 1c132c8..077bc84 100644 --- a/models/admin/contacts/index.php +++ b/models/admin/contacts/index.php @@ -621,7 +621,7 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts } // If the option is "edit" don't let lower-level users assign privileges above the user's pay grade - if ($option == 'edit' && $this->config['loggedInUser']['contactUser']) { + if (($option == 'edit' || $option == 'create') && $this->config['loggedInUser']['contactUser']) { // If this is an Entity Manager or lower user, then remove the "MembersManger" role selection if ($this->config['loggedInUser']['contactUser']['role'] >= $this->config['contact_role_numb']['EntityManager']) {