Annoying issues with GalleryEmbed::deleteUser...

Oldiesmann
Oldiesmann's picture

Joined: 2005-05-18
Posts: 151
Posted: Sun, 2006-11-19 02:58

This is mostly an FYI for those who are also working on embedding Gallery... Make sure you pass the activeUserId of a user with Site Admin privileges in Gallery to init() prior to calling galleryEmbed::deleteUser()...

A user recently reported that when they tried to delete their account, Gallery complained that they couldn't delete the active user. I wasn't passing an activeUserId to init() because I didn't think one was needed. To fix this problem, I simply added a call to galleryEmbed::logout() before calling init.

A few days later, the user reported back saying that they were now getting an ugly ERROR_PERMISSION_DENIED message - the watermarks module was complaining because the active user didn't have permission to delete the user's watermarks.

Must not come up that often, as I've been deleting accounts the same way since the original beta was released earlier this year, but at least it's fixed now :)

The Oldiesmann
SMF Assistant Project Manager / Lead Support Specialist
SMF+G2 Integration Project - Beta2 now available!