SunboX / fotocommunity

just in development, very early state ;o)
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Trying to get property of non-object #31

Closed SunboX closed 14 years ago

SunboX commented 14 years ago

Bug when logged in administrator tries to add a new gallery for another user in frontend.

SunboX commented 14 years ago

Seems like FCDirector doesn´t set correct User ID. Schould be rewritten with better url handling. Nested URLs are neccessary, but first introduced with SS 2.4. :( We should write new ULRs like this:

current url:

/galleries/new-gallery/{user-id}

suggested new url:

/profile/{user-id}/galleries/new-gallery/

SunboX commented 14 years ago

Does also not work for ordinary users in own galleries

SunboX commented 14 years ago

Ok, got it... user-id is set after gallery is created instead of gallery id. So redirect to image upload form fails because of invalid id.

SunboX commented 14 years ago

fixed with 589c62bcc1d98d0d1f402c7431e36d6b8a0ed8dd