cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

could not translate value expression 'session.branch'[HY-0]

david_gc1
Explorer
390

Hello, Experts, I can help anyone who has obtained this error through the login of a b2bCustomer. I generate a user, but when I login I get this error, I've been reading that it has something to do with SearchRestriction, but I don't know very well which one to disable.

The ones I have configured are these.

INSERT_UPDATE SearchRestriction;code[unique=true];name[lang=en];query;principal(UID);restrictedType(code);active;generate ;b2busergroup_restriction;Restrict B2BUserGroup visibility;{item:Unit} IN (?session.branch) and EXISTS ( {{ select {ug:PK} from {UserGroup as ug} where {ug:PK} IN (?session.user.groups) and {ug:uid} = 'b2badmingroup' }} );b2bgroup;B2BUserGroup;true;true ;branch_restriction;branch_restriction;{item:pk} IN (?session.branch) and ( {item:active} = 1 OR EXISTS ( {{ select {ug:PK} from {UserGroup as ug} where {ug:PK} IN (?session.user.groups) and {ug:uid} = 'b2badmingroup' }} ));b2bgroup;B2BUnit;true;true ;employee_restriction;Restrict employees visibility;EXISTS ({{ SELECT {pk} FROM {PrincipalGroupRelation} WHERE {source}={item:pk} AND {target} IN ( ?session.branch ) }} ) AND ( {item:active} = 1 OR EXISTS ( {{ select {ug:PK} from {UserGroup as ug} where {ug:PK} IN (?session.user.groups) and {ug:uid} = 'b2badmingroup' }} ));b2bgroup;B2BCustomer;true;true ;costcenter_restriction;Restrict CostCenter visibility;{item:Unit} IN (?session.branch) and ( {item:active} = 1 OR EXISTS ( {{ select {ug:PK} from {UserGroup as ug} where {ug:PK} IN (?session.user.groups) and {ug:uid} = 'b2badmingroup' }} ));b2bgroup;B2BCostCenter;true;true ;budget_restriction;Restrict Budget visibility;{item:Unit} IN (?session.branch) and ( {item:active} = 1 OR EXISTS ( {{ select {ug:PK} from {UserGroup as ug} where {ug:PK} IN (?session.user.groups) and {ug:uid} = 'b2badmingroup' }} ));b2bgroup;B2BBudget;true;true ;b2border_restriction;Restrict B2BUserGroup visibility for orders;({item:Unit} IN (?session.branch) OR ({item:Unit} is NULL AND {item:User}=?session.user));b2bgroup;Order;true;true;

Can you help me with this error?

Accepted Solutions (0)

Answers (0)