liquid_feedback_frontend

changeset 1179:254661fb5d83

Force member image reload only for members own images
author bsw
date Thu Mar 26 19:46:14 2015 +0100 (2015-03-26)
parents 5a6960960231
children e266841f784b
files app/main/member/_profile.lua app/main/member/show.lua
line diff
     1.1 --- a/app/main/member/_profile.lua	Thu Mar 26 19:33:51 2015 +0100
     1.2 +++ b/app/main/member/_profile.lua	Thu Mar 26 19:46:14 2015 +0100
     1.3 @@ -23,7 +23,7 @@
     1.4            params = {
     1.5              member = member,
     1.6              image_type = "photo",
     1.7 -            force_update = true
     1.8 +            force_update = app.session.member_id == member.id
     1.9            }
    1.10          }
    1.11        end }
     2.1 --- a/app/main/member/show.lua	Thu Mar 26 19:33:51 2015 +0100
     2.2 +++ b/app/main/member/show.lua	Thu Mar 26 19:46:14 2015 +0100
     2.3 @@ -84,7 +84,7 @@
     2.4          image_type = "avatar",
     2.5          show_dummy = true,
     2.6          class = "left",
     2.7 -        force_update = true
     2.8 +        force_update = app.session.member_id == member.id
     2.9        }
    2.10      }
    2.11      ui.heading{ level = 1, content = member.name }

Impressum / About Us