Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 216d3d24
authored
2022-10-10 13:17:11 +0530
by
kashif ansari
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fetching user datail with user id mapped with channel partner
1 parent
b287e4eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/extensions/users-permissions/strapi-server.js
src/extensions/users-permissions/strapi-server.js
View file @
216d3d2
...
@@ -181,7 +181,8 @@ const userPermissionExtension = (plugin) => {
...
@@ -181,7 +181,8 @@ const userPermissionExtension = (plugin) => {
// Find the linked user next.
// Find the linked user next.
const
user
=
await
strapi
const
user
=
await
strapi
.
query
(
"plugin::users-permissions.user"
)
.
query
(
"plugin::users-permissions.user"
)
.
findOne
({
id
:
channelPartner
.
user
.
id
});
.
findOne
({
where
:{
id
:
channelPartner
.
user
.
id
}});
if
(
!
user
||
user
.
blocked
)
{
if
(
!
user
||
user
.
blocked
)
{
throw
new
ValidationError
(
throw
new
ValidationError
(
"Unable to resolve user linked to channel partner."
"Unable to resolve user linked to channel partner."
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment