Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Members 'Edit' own family breaks if family members are not visible #1173

Open
jefft opened this issue Feb 21, 2025 · 2 comments
Open

Members 'Edit' own family breaks if family members are not visible #1173

jefft opened this issue Feb 21, 2025 · 2 comments

Comments

@jefft
Copy link
Contributor

jefft commented Feb 21, 2025

In Jethro's /members section home page, one sees members of one's own family, with an 'Edit' link to edit them:

Image

However, say that:

  • the current user is also a staff member
  • the current user has their Jethro visibility restricted to a group or congregation
  • one of their family members is not in that group/congregation

That person should probably not be visible, but they are. Until one clicks 'Edit', when Jethro breaks:

PHP message: Call to a member function getValue() on null - Line 37 of /home/jethro/code/2.36.0/app/members/views/view_0_edit_me.class.php

Should-not-be-visible family member's ID is being looked up, and the database view correctly returns nothing, which Jethro isn't expecting.

@tbar0970
Copy link
Owner

Hmm. The user is logged in with their member account, so restrictions on their control centre account shouldn't make a difference. I can look into this soon.

@tbar0970
Copy link
Owner

Ok, so Ive investigated and i now think your diagnosis is correct. But the intended behaviour is that control centre restrictions and members area visibility are separate things. Will investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants