Skip to content

Commit

Permalink
fixes bug #1041
Browse files Browse the repository at this point in the history
  • Loading branch information
ppazos committed Sep 9, 2019
1 parent 1231196 commit 19f4126
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ class SecurityFilters {
all(controller:'*', action:'*') {
before = {

// Make session available in the session if comes from REST
// TODO: with this we can change all request.securityStatelessMap.extradata.org_uid for sesison.organization.uid
if (!session.organization && request.securityStatelessMap)
{
session.organization = Organization.findByUid(request.securityStatelessMap.extradata.org_uid)
}

/**
* Lang check
*
Expand Down

0 comments on commit 19f4126

Please sign in to comment.