Install
Works with Drupal: ^10.1 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release fixes an access bypass in the user affiliate views. Please update and run drush updb.
The clicks, conversions and campaigns pages under /user/{user}/affiliate/ accepted all in place of a user ID, which skipped the argument validator and listed every affiliate's records. Sites installed before 1.0.0-alpha3 also had a broken user filter on the campaigns page, so it listed every campaign. The campaigns admin page at /admin/config/affiliate/campaigns only required the "view own affiliate_campaign entities" permission, so every affiliate could see all campaigns.
affiliated_update_10005() fixes existing sites:
- Removes the
allexception from the user argument of the three views, and returns "not found" when no user ID is given. - Repairs the campaigns user argument on sites installed before 1.0.0-alpha3.
- Changes the campaigns admin page to the "view any affiliate_campaign entities" permission, if it still has the permission the module shipped.
If you changed or removed the user argument on one of these views, the update leaves it alone and says so. Check that those views only show the current user's data.