Gig-o-Matic / GO3

GNU General Public License v3.0
10 stars 8 forks source link

"Duplicate" button gives "403 forbidden" #484

Closed DanCodiga closed 5 months ago

DanCodiga commented 5 months ago

occurs on mobile, desktop, multiple browsers

aaronoppenheimer commented 5 months ago

Dan, which band is it happening for?

This is likely because the band has "any user can manage gigs" true but "any user can create gigs" false. The logic in the template shows the "duplicate" button because of the "manage" permission but it should really only show it for the "create" permission. When a non-admin user goes to duplicate the gig, that's a permission violation because they're trying to create. The fix will be to update the logic in the template.

DanCodiga commented 5 months ago

Okay thanks for the quick reply. This is for Jamaica Plain Honk Band.

aaronoppenheimer commented 5 months ago

Hm. That band is set with both "create" and "manage" set to true, so something else is going on. Will investigate.

aaronoppenheimer commented 5 months ago

addressed in #485 - should be fixed now!

DanCodiga commented 5 months ago

Super. Thanks Aaron!