From 3f3593defdaa5efc5557d419e16708135074f9ec Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 7 Jun 2016 14:14:38 -0400 Subject: [PATCH] Now blocking adding a member with All Members permission when user is a logged in member. --- models/admin/contacts/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) { -- 2.17.1