liquid_feedback_frontend

diff app/main/oauth2/token.lua @ 1584:2874a199c727

Removed include_role from token endpoint and added it to validate endpoint
author bsw
date Tue Jan 26 18:52:28 2021 +0100 (2021-01-26)
parents b4a377306a34
children 8fde003bdeb0
line diff
     1.1 --- a/app/main/oauth2/token.lua	Tue Jan 26 18:19:13 2021 +0100
     1.2 +++ b/app/main/oauth2/token.lua	Tue Jan 26 18:52:28 2021 +0100
     1.3 @@ -273,14 +273,6 @@
     1.4          r.real_member.identification = token.session.real_member.identification
     1.5        end
     1.6      end
     1.7 -    if unit.attr.role and param.get("include_roles") then
     1.8 -      r.roles = json.object()
     1.9 -      if not unit.attr.only_visible_for_role 
    1.10 -        or member:has_role(unit.attr.only_visible_for_role)
    1.11 -      then
    1.12 -        r.roles[unit.attr.role] = true
    1.13 -      end
    1.14 -    end
    1.15    end
    1.16  end
    1.17  

Impressum / About Us