hi again,
I am using the panel as user manager. I have two types of roles. I want to achieve the following:
Role: admin
Can view all users and all fields
Role: partner (example)
You can view and edit only your user (this is already achieved)
I could only see some fields of your user, example:
Name: Carlos
Last name: montes
Field of test results: I did not pass the exam (I only want to see the admin and not the partner)
Now I’m using a css-based solution, it’s not secure but it does what I had in mind.
The user fields in the panel have the class of the name of that field in apticular. For example if I want to hide for users role partner, the field “test results”
In the panel css:
.field-name-test-results {
Display: none! Important; }
Is there any way to do it safely?
I don’t think that this is currently possible with permissions, at least I haven’t found a way yet. If you really need to prevent users from accessing those fields, I wouldn’t rely on a CSS solution, but modify the Panel.