Why is the plugin closed? Security? Compatibility?
Thank you.
Hi John,
I’m 99% sure your plugin works fine with ACF 6, but just wanted to point out that the main plugin page is very explicitly about ACF 5.
“This is an add on plugin for Advanced Custom Fields (ACF) Version 5.
This plugin will not provide any functionality if ACF5 is not installed.”
Cheers
]]>I would like to use this to restrict sensitive content that users are entering in ACF custom fields. How secure is this? Is there any possibility that the content could get hacked (assuming I have the latest security measures in place)?
]]>Version 4.0.0 removes support for all sub fields.
The issue is that removed fields are not reordered properly when repeaters (including flex fields) are re-ordered.
I have made several attempts and correcting this issue but all attempts lead to more instability and errors.
If you need this functionality for a sub field my suggestion is that you build this this functionality specifically for your use-case.
]]>Hi,
I have this error in the log:
PHP Notice: Trying to get property ‘ID’ of non-object in xxxxxxx/wp-content/plugins/user-role-field-setting-for-acf/acf-user-role-field-setting.php on line 74
Do you have an idea of the problem?
Thank you in advance for your help
Eric
I’m making a personal account. With the ability to select a role using your plugin + acf. How to remove from the role selection list, for example, the author. All wordpress roles are being displayed now.
]]>Hello,
is this plugin compatible to 5.8 wordpress version?
Hi,
I have tried your plugin to set a custom field created by ACF plugin, but it does not work although I set that field to all user roles. It is only seen to Admin role; not to other user roles at custom post type post (Edit/Add) pages.
Any advice would be very appreciated.
Cheers
]]>I see that this plugin was tested up to 5.5.3 wordpress version, did you test it on version 5.6 and above? if not why?
]]>Hi there! Great plugin (that I think should be in ACF by default)
Can you tell me if this works as expected for Blocks that have ACF-driven UIs?
That is, can a block have a Network Administrator only field that doesn’t get overwritten when non-network administrators update the content that the block is in?
Thanks!
]]>Hi John,
I’ve encountered an issue with the 3.x branch where user roles are selected for fields that are also set as “Required” and the ACF Field Group is added to the WP User Form.
I have a multi-tab field group that’s adding fields to the user profile. Some of the fields only apply to one or two user roles, and some of them are required. The user profile fields are intended to be edited via frontend form, so I used ACF User Role Field Setting to only apply to the required roles, preventing them from being displayed to the Admin user role in the WP admin.
When I upgrade to the 3.x branch, while the fields that are configured to display only for the specific roles don’t display in the admin as intended, when I try to save a user profile I get the ACF “Validation failed” error at the top of the Profile page.
If I downgrade to v2.1.15, I’m able to save the user profile.
Any insight on what changed to cause this, and if it’s possible to resolve it?
The version of ACF Pro doesn’t seem to have an effect; I’m currently running the most recent 5.9.3.
Thanks,
Kevin
Admin users are able to edit a field named “DJs” that affects the name of the DJ that appears on the front end of our Program custom post type pages https://share.getcloudapp.com/jkulKmgL
Author users are allowed to edit other fields in this CPT, but they’re not allowed to see or edit that DJs field. However, if an Author user edits another field and updates the post, the DJ that was selected in that program is now erased and the word “Anonimous” replaces the DJ name. See screen recording of me logged in as an author user editing the Program CPT and the resulting DJ name change on the front end. https://share.getcloudapp.com/04uPK5Xp
]]>Hi there,
We’d like to use your handy little plugin to restrict some fields to only super_admins on MultiSite. Unfortunately, the way your plugin currently checks if someone is a super_admin is incompatible with our configuration, and I believe could be easily resolved within the plugin.
We manage our sites’ code with version control, so have set DISALLOW_FILE_MODS to be true:
https://www.ads-software.com/support/article/editing-wp-config-php/#disable-plugin-and-theme-update-and-installation
Your plugin uses the following to determine if a user is a super admin:
if (is_multisite() && current_user_can(‘update_core’)) {
$this->current_user[] = ‘super_admin’;
}
which is NOT true even for network administrators when DISALLOW_FILE_MODS is set to true.
Might you consider using something such as current_user_can(‘manage_network’) or explicitly checking the wp_sitemeta table for who the super users are instead?
Cheers and thanks
– Jason
]]>This plugin is what I was looking for. Amazing work! Problem is, it doesn’t work for the TAB field, what I assumed is the main target for this plugin. Oddly enough I cannot upload the picture, but I can tell you my specs:
1. ACF version 5.8.7
2. ACF User Role Field Setting version 3.0.1
3. I am running a local environment
4. For other fields (I tested text, number, select and checkbox) it works like a charm
What can be the cause?
Let me know if you need any additional information
Hello,
The following error is displayed in Ver.3.0.0.
Notice: Trying to get property ‘ID’ of non-object in /home/xxxxxxxx/xxxxxxxxxxxxx.com/public_html/wp-content/plugins/user-role-field-setting-for-acf/acf-user-role-field-setting.php on line 51
Is there a solution?
Thank you.
]]>unfortunately the latest version doesn’t seem to be able to limit field type “group” to certain roles, only the sub-fields of this group, which means, user roles who shouldn’t see the fields see the group field name
]]>Hi John
I spoke to you about an issue a year or 2 ago which was fixed in v2.1.12 of your plugin (corrected an issue with repeater sub fields when reordered) but this issue seems to have re-occured. I have a demo website with a series of tiles, the icon on the tile comes from a text field that is hidden to certain user roles.
Someone logged in to my demo website today and has re-arranged these tiles, but the icons have stayed in their original position so now do not correspond to the titles on the tiles. (I hope that makes sense).
Would appreciate if you could look in to this for me.
Thanks
]]>When I login with an Editor account can not see where can I edit the field or ACF menu, after setting “Editor” and “All” user role in the setting field o a custom field.
I am using:
ACF User Role Field Setting – Version 2.1.15
Advanced Custom Fields – Version 5.7.12
Wordpress – 5.0.3
The backend preview is not working with current Pro-Version “5.7.7”. The get_field always returns null when its in preview mode and “draft”. The post type is just “page”, not a custom post type. Its only when the post status is “draft” (“pending” or “publish” is working in preview mode).
When I deactivate your plugin “ACF User Role Field Setting”, it works well.
]]>Hi there i canno see the plugung tab in ACF.
Any idea?
]]>After activating the plugin, I don’t see any settings for user roles, in fact nothing seems to have changed.
I noticed from the support forum here that with ACF 5.6.0 the plugin had not immediately worked, so I wanted to check if this might also be the case with the new 5.7.0? I’m using the pro version of ACF.
]]>I am using this plugin on a site and I have “Administrators” and “Editors” checked.
I am an administrator and the field is not being displayed. When I log into an Editor test account the field is not being displayed. It is only displayed when “All” is checked.
The field type is “True/False”. I am running ACF Pro 5.6.10
]]>When this plugin is active, the user is unable to delete the last row of a repeater field.
Lastest version of PRO ACF installed.
Yes, checked with vanilla setup … no other plugins except ACF PRO and Twenty Seventeen theme. Same result.
Thank you for your attention.
]]>I had been using Version 2.1.9 without a problem. When I upgraded to v 2.1.10 it stopped working and would not write new values to the database when an Administrator Only used the field.
I rolled back to v.2.1.9 and everything is fine now. It seems there may be something wrong with the new version.
]]>Is that possible?
I would like to set some fields for a specific user role. Just see but they can not edit.
I activated the plugin, but I am not seeing any role options on my fields.
]]>Hi! I’m trying to activate de plugin but I get error 500 and don’t know why. Is it possible to be because my PHP version (7.0.10)?
Any ideas?
]]>Hi John
Wondering if there is a way to set the user role access for sub fields of a repeater field? I don’t currently see the option.
I want to create a repeater field for several tiles linking to several internal and external pages, and each row will have several options e.g. background colour, text colour, icon image, link, but other settings which I am to set and don’t want the users to mess with so would like to hide them.
Any ideas? Thanks
Edit: Apologies, it appears role access can be changed for text sub fields, however the fields I would like to control are color picker fields and radio button fields, and there is no option for either of these field types.
]]>