projects
/
WP-Plugins
/
glm-member-db-fields.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873c5a6
)
Change the permission required for custom fields.
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 12 Apr 2017 12:47:46 +0000
(08:47 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/models/admin/memberinfo/fields.php
b/models/admin/memberinfo/fields.php
index
0b72856
..
6d04c6f
100644
(file)
--- a/
models/admin/memberinfo/fields.php
+++ b/
models/admin/memberinfo/fields.php
@@
-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;
}