Leaders of groups and roles

If you aren't speaking german, you can ask for support or post your request here.
Antworten
houdini
Beiträge: 6
Registriert: 19. Okt 2022, 20:22

Leaders of groups and roles

Beitrag von houdini »

Hello Fasse

Thank you very much for your work, it is very much appreciated. In our organization we use groups and roles. Gives leaders the ability to assign and edit members.
But, the leaders cannot see the lists with the members. They can choose lists, but all the lists appear blank.

Are we doing something wrong?

Best regards
Nuno
Benutzeravatar
fasse
Administrator
Beiträge: 6041
Registriert: 12. Nov 2005, 16:06

Re: Leaders of groups and roles

Beitrag von fasse »

Hi Nuno,

could you please provide further informations about your role preferences. What is your setting for view role memberships ?

Best regards
Fasse
houdini
Beiträge: 6
Registriert: 19. Okt 2022, 20:22

Re: Leaders of groups and roles

Beitrag von houdini »

Hello Fasse

I copy the settings from the demo. There everything works like it should.


Bild


Lists view by administrator, here they appear just fine:
Bild

Bild

Same lists view by leader of this group. Here appear a new column:"groups", and all the other columns disappear:
Bild

Bild

And, when the leader try to assign members, a error 500 appear.

Thank you Fasse!
Benutzeravatar
fasse
Administrator
Beiträge: 6041
Registriert: 12. Nov 2005, 16:06

Re: Leaders of groups and roles

Beitrag von fasse »

Couldn't view your pictures.

Which PHP-Version do you use?
houdini
Beiträge: 6
Registriert: 19. Okt 2022, 20:22

Re: Leaders of groups and roles

Beitrag von houdini »

Hello Fasse

I installed with php 8.0, but I downgrade to 7.4.

In debug mode, when the leader of the group try to assign members, this is the error message:
Notice: Undefined index: STREET in /var/www/clients/client1/web1/web/admidio/adm_program/system/classes/ProfileFields.php on line 467

Fatal error: Uncaught Error: Call to a member function getValue() on null in /var/www/clients/client1/web1/web/admidio/adm_program/system/classes/ProfileFields.php:467 Stack trace: #0 /var/www/clients/client1/web1/web/admidio/adm_program/modules/groups-roles/members_assignment.php(277): ProfileFields->isVisible() #1 {main} thrown in /var/www/clients/client1/web1/web/admidio/adm_program/system/classes/ProfileFields.php on line 467
Best regards
Nuno
Benutzeravatar
fasse
Administrator
Beiträge: 6041
Registriert: 12. Nov 2005, 16:06

Re: Leaders of groups and roles

Beitrag von fasse »

Could it be that you have removed the profile field "STREET" but still have a list configuration that use that field?

Or does the profile field "STREET" has special rights so that not all users are allowed to view that field?
houdini
Beiträge: 6
Registriert: 19. Okt 2022, 20:22

Re: Leaders of groups and roles

Beitrag von houdini »

Hello Fase! Yes, that was it. I had deleted that field. Now the leader can add members.

Thank you very much.
Benutzeravatar
fasse
Administrator
Beiträge: 6041
Registriert: 12. Nov 2005, 16:06

Re: Leaders of groups and roles

Beitrag von fasse »

You have deleted that Field and it still was in the List configuration?

That is also an error of Admidio. Was this the case?
houdini
Beiträge: 6
Registriert: 19. Okt 2022, 20:22

Re: Leaders of groups and roles

Beitrag von houdini »

Hello fasse,

Yes, I tried it and the error also happens in the demo. If you delete the STREET or COUNTRY from the profile fields of the members (I haven't tried other fields), the group leader when trying to assign a member, the error 500 occurs (in the demo).

When I put these fields back in Admidio, everything goes back to normal.

Thank you!

Best regards
Nuno
Benutzeravatar
fasse
Administrator
Beiträge: 6041
Registriert: 12. Nov 2005, 16:06

Re: Leaders of groups and roles

Beitrag von fasse »

Hi Nuno,

with your error discription I found the problem and could fix it.
https://github.com/Admidio/admidio/issues/1317

With the next version 4.1.18 you could delete these fields and leaders could still assign members.

Fasse
Antworten