Now blocking adding a member with All Members permission when user is a logged in...
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 7 Jun 2016 18:14:38 +0000 (14:14 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 7 Jun 2016 18:14:38 +0000 (14:14 -0400)
models/admin/contacts/index.php

index 1c132c8..077bc84 100644 (file)
@@ -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']) {