Change the permission required for custom fields.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Apr 2017 12:47:46 +0000 (08:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Apr 2017 12:49:44 +0000 (08:49 -0400)
Remove the check all together

models/admin/memberinfo/fields.php

index 0b72856..6d04c6f 100644 (file)
@@ -142,19 +142,6 @@ class GlmMembersAdmin_memberinfo_fields extends GlmDataFieldsCustomFields
                 // Make sure option is set if default
                 $option = 'list';
 
-                // Determine if current user can edit configurations
-                if (!current_user_can('glm_members_management')) {
-                    return array(
-                        'status'           => false,
-                        'menuItemRedirect' => 'error',
-                        'modelRedirect'    => 'index',
-                        'view'             => 'admin/error/index.html',
-                        'data'             => array(
-                            'reason' => 'User does not have rights to make configuration changes.'
-                        )
-                    );
-                }
-
                 break;
 
         }