liquid_feedback_frontend

diff env/util/is_profile_field_locked.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/env/util/is_profile_field_locked.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/env/util/is_profile_field_locked.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -7,10 +7,16 @@
     1.4        return true
     1.5      end
     1.6    end
     1.7 -  
     1.8 +
     1.9 +  if member.authority and string.sub(member.authority, 1, 7) == "oauth2_" then
    1.10 +    if field_name == "login" or field_name == "password" or field_name == "notify_email" then
    1.11 +      return true
    1.12 +    end
    1.13 +  end
    1.14 +
    1.15    if config.locked_profile_fields[field_name] then
    1.16      return true
    1.17    end
    1.18  
    1.19    return false
    1.20 -end
    1.21 \ No newline at end of file
    1.22 +end

Impressum / About Us