socallinuxexpo / scale-drupal

SCALE's drupal website and related configs
1 stars 3 forks source link

2023 speaker pages showing access denied suddenly #113

Closed irabinovitch closed 10 months ago

irabinovitch commented 11 months ago

2023 speaker pages are showing access denied suddenly. Here are a few examples that dont work if you aren't logged in.

https://www.socallinuxexpo.org/scale/20x/speakers/ibrar-ahmed https://www.socallinuxexpo.org/scale/20x/speakers/hamid-akhtar https://www.socallinuxexpo.org/scale/20x/speakers/roller-angel

irabinovitch commented 11 months ago

some still load as expected: https://www.socallinuxexpo.org/scale/20x/speakers/jj-asghar

irabinovitch commented 11 months ago

19x speakers impacted too. 18x speakers look ok.

Best i can figure, if the speaker has spoken multiple years they seem to be fine. If they only spoke one year we get access denied.

DrupalPhil commented 10 months ago

This is the utility function I optimized previously. I rebuilt the function based (mostly) on the comments in the code. I misunderstood it to mean that users should only be able to see speakers from the current event, not the event in the url.

The latest commit addresses this.