User custom profile fields cannot be seen by a group of admins

Bug and problem reporting on Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

User custom profile fields cannot be seen by a group of admins

Post by jar »

Hi,

In December 2019, we created an admin group and specified permissions to that group that allowed admins of that group to see some profile fields of users. Everything worked fine.
In January 2020, we added access to more users profile fields and users user records to that admin group, so they could see more fields of users. However, now, this admin group only sees standard profile fields of users. They cannot see any of custom user profile fields.
If I go to System - Groups and select their group and look at permissions, all desired permissions are well set up.

We have a feeling that when recording the changes to permissions, something went wrong. Do you have any idea of what may be causing this error? Where could we see in database if something is wrong?

We have Cyclos 4.12.3. We tested with Cyclos 4.12.4 and the problem persists.
Should we send you our database?
Thanks
Thanks for your kind attention.
Best regards,

JAR

admin
Site Admin
Posts: 1423
Joined: Mon Jan 24, 2005 10:31 am

Re: User custom profile fields cannot be seen by a group of admins

Post by admin »

Hello,

Could you try to save the permissions again?

jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

Re: User custom profile fields cannot be seen by a group of admins

Post by jar »

We have tried that many times. It does nothing.
Thanks for your kind attention.
Best regards,

JAR

admin
Site Admin
Posts: 1423
Joined: Mon Jan 24, 2005 10:31 am

Re: User custom profile fields cannot be seen by a group of admins

Post by admin »

Ok, can you send the db to info@cyclos.org? With an explanation how to reproduce the problem (what fields are not visible, what user, what admin).
Thanks,

jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

Re: User custom profile fields cannot be seen by a group of admins

Post by jar »

Hi,

We will send you the database dump through wetransfer.com web site to info@cyclos.org.
The scenario is:
When we create an admin account (Admin Group) to the user(RPAtaskt), when we define the permissions to show some profile custom fields values of other user, in cyclos frontend, it doesn't show.

We detected another problem when we tried create a user of any group. This is the error that returns:
cyclos_error.PNG
cyclos_error.PNG (11.23 KiB) Viewed 2332 times
Can you check this problem too?
Thanks for your kind attention.
Best regards,

JAR

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: User custom profile fields cannot be seen by a group of admins

Post by alexandre »

Hi,

I cannot restore your backup, maybe you are using a different database version.
Can you following these steps to generate the backup:
https://documentation.cyclos.org/4.12/c ... tml#d0e950

Also send what is your postgresql installation version.

regards
Alexandre Caurrinhos
Cyclos development team.

jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

Re: User custom profile fields cannot be seen by a group of admins

Post by jar »

Hi,

Database version is 65.

We are using the postgresql 11 installation, also we made a new backup with .sql extension, not .backup how we did last time.

Also we send you the pictures you need to know how reproduce the error/bug.

Go of the menu "System" -> "Group", choose "RPA" you can see in picture_1.png, inside this group, choose permissions tab and set the user custom fields (Perfil de risco BCFT) "visible" for example, you can see in picture_2.png and finally do the login with user (RPAtaskt), choose the user and in profile view doesn't show the user custom field (Perfil de risco BCFT) in layout, you can see in picture_3.png.
I hope this explanation will helps.
Attachments
picture_1.png
picture_1.png (175.33 KiB) Viewed 2321 times
picture_2.png
picture_2.png (172.11 KiB) Viewed 2321 times
picture_3.png
picture_3.png (142.22 KiB) Viewed 2321 times
Thanks for your kind attention.
Best regards,

JAR

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: User custom profile fields cannot be seen by a group of admins

Post by alexandre »

Hi,

You set the fields to be hidden by default, and the admin that are trying to see the fields don't have the permission to see hidded fields from user profile, just grant this permission ( "Ver os campos de perfil de usuário oculto") and it should be ok.

regards
Alexandre Caurrinhos
Cyclos development team.

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: User custom profile fields cannot be seen by a group of admins

Post by alexandre »

Hi
The other problem that happens on user registration are being generated by a custom script that are loading values for some custom fields.
There is several scripts and fields on this database so is hard to debug, probably you can do it faster.

regards
Alexandre Caurrinhos
Cyclos development team.

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: User custom profile fields cannot be seen by a group of admins

Post by alexandre »

HI,

The problem happens with the script related to the field "Fatura comissões a".

regards
Alexandre Caurrinhos
Cyclos development team.

jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

Re: User custom profile fields cannot be seen by a group of admins

Post by jar »

Thanks a lot for your fast answer.
You are great!
Thanks for your kind attention.
Best regards,

JAR

Post Reply