zetkin / www.zetk.in

The main activist front-end for Zetkin.
https://www.zetk.in
4 stars 7 forks source link

Follow when signing up to an organization which is not followed. #296

Closed niklasva82 closed 1 year ago

niklasva82 commented 1 year ago

Fixes bug where a user signs up to a connected but not followed organization, such as a parent organization.

Follow these steps to verify the fix:

  1. Set follow=false to a membership, e.g. update members_person_organizations set follow = false where organization_id = 1 and person_id = 2;
  2. Log in using the account (testadmin@example.comin this case) and visit a public campaign from the unfollowed campaign, e.g. http://www.dev.zetkin.org/o/1/campaigns/2
  3. Sign up to an action and click to connect.
  4. Go to "My actions"

Before the fix: The signed up action is not visible because the user does not follow the organization. After the fix: The signed up action is visible.