Fixed incorrectly checking for glm_members_management for a settings model.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 21 May 2018 19:48:49 +0000 (15:48 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 21 May 2018 19:48:49 +0000 (15:48 -0400)
models/admin/settings/registrationsMisc.php

index ec587d8..752612a 100644 (file)
@@ -103,19 +103,6 @@ class GlmMembersAdmin_settings_registrationsMisc extends GlmDataRegistrationsMis
         // Misc settings are always stored in a record with ID=1.
         $id                 = 1;
 
-        // 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.'
-                )
-            );
-        }
-
         // Check for submission option
         $option = '';
         if (isset($_REQUEST['option']) && $_REQUEST['option'] == 'submit') {