liquid_feedback_frontend
diff app/main/member/_action/update_login.lua @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
| author | bsw/jbe |
|---|---|
| date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
| parents | 58f48a8a202a |
| children |
line diff
1.1 --- a/app/main/member/_action/update_login.lua Thu Jun 23 03:30:57 2016 +0200 1.2 +++ b/app/main/member/_action/update_login.lua Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 -if util.is_profile_field_locked(app.session.member, "login") then 1.5 - error("access denied") 1.6 +if util.is_profile_field_locked(app.session.member, "login") or app.session.member.role then 1.7 + return execute.view { module = "index", view = "403" } 1.8 end 1.9 1.10 local login = param.get("login")