@@ -138,9 +138,9 @@ impl UserRole {
138
138
profile_id : Option < String > ,
139
139
version : UserRoleVersion ,
140
140
) -> StorageResult < Self > {
141
- // Cheking in user roles, for a user in token hierarchy only one of the relation will be true, either org level, merchant level or profile level
141
+ // Checking in user roles, for a user in token hierarchy, only one of the relation will be true, either org level, merchant level or profile level
142
142
// Find from user_roles where user_id = ?
143
- // && ((org_id = ? && merchnat_id = null && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = ?))
143
+ // && ((org_id = ? && merchant_id = null && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = ?))
144
144
// && version = ?
145
145
let predicate = dsl:: user_id
146
146
. eq ( user_id)
@@ -172,9 +172,9 @@ impl UserRole {
172
172
profile_id : Option < String > ,
173
173
version : UserRoleVersion ,
174
174
) -> StorageResult < Self > {
175
- // Cheking in user roles, for a user in token hierarchy only one of the relation will be true, either org level, merchant level or profile level
175
+ // Checking in user roles, for a user in token hierarchy, only one of the relation will be true, either org level, merchant level or profile level
176
176
// Find from user_roles where user_id = ?
177
- // && ((org_id = ? && merchnat_id = null && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = ?))
177
+ // && ((org_id = ? && merchant_id = null && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = ?))
178
178
// && version = ?
179
179
let predicate = dsl:: user_id
180
180
. eq ( user_id)
0 commit comments