Marco Cimmino
Forum Replies Created
-
Cool, thanks.
Which plugin do you use to make this happens? Link?
Indeed was a bug there since ages, strange nobody noticed before.
Can you download again and test with the above settings that triggered it please?EDIT:
Indeed I introduced with my latest patch, wasn’t there before ??I am interested in the bug, so the field was visible? What does it mean exactly custom admin?
Right now visible to only admin and to user that has ‘view_cimy_extra_fields; cap are not the same:
only by admin means _really_ only by admin, who has level 8 or higher.
the other depends on who you assign that role, initially is only admin, then can be everyone.You can receive an email! Check field’s options.
Actually I have to apologize as well as I made confusion too, let’s summarize:
1. if you set the rule to not view the field for non admin then non admin user cannot see it and cannot modify it
2. if you set the rule to not edit the field for non admin then non admin user may see (depends on point 1.) but definitively not edit it.This allows you to let non admin see the field, but not edit it, might be useful.
Said this I created a new capability named “view_cimy_extra_fields” and is added to Administrator role first time you open plug-in’s options.
Then you can modify the rule “Show the field if at least” -> “User has ‘view_cimy_extra_fields’ capability”Please download dev version and try it out:
https://downloads.www.ads-software.com/plugin/cimy-user-extra-fields.zipI hope this is enough to solve your problems, let me know.
regards
MarcoAnd I repeat once more:
one thing is to see the field
one thing is to edit the fieldwith my plugin you can set both rules but you are mixing them like is the same one, but is NOT.
For example with my plugin you can let the non admin SEE the field, but NOT edit.I already understood you want one more role, but you want the role for SEEING or for EDITING? This is the point.
No post processing has been implemented, you can be clearer of what you need exactly and sponsor it.
> “Show the field only if the role has the ‘edit_cimy_field’ capability”.
Actually for the edit there is another rule that is the:
Can be modified only by admin
Which rule are you talking about exactly?Uhm 2 is much better, creating a role is very easy, but then you’ll have to use another plugin to assign that to non admin users.
I’ll go for that.So basically you want an extended dropdown where to choose:
Do not edit this field if not capable of…and the list from:
https://codex.www.ads-software.com/Roles_and_Capabilities#Administratorplus all the custom capabilities assigned to the administrator.
Am I understanding right?
Default value is saved only when field is visible and user saves first time, I like this behaviour.
The second approach seems much better and actually adds a nice feature to the plugin that has been requested by other people.
So either you can propose a patch or sponsor it I guess.I actually didn’t get fully, so I’ll try to summarize:
1. field not visible for the user
2. default value to somethingand you want that even if the user cannot see the field, the default value is saved anyways?
Fixed for v2.0.3 ??
Actually I think the correct fix is:
1. (“list_users”) to list users
2. (“edit_user”, user_id) to show/save the ‘change’ link