Skip to content

Commit 4a29752

Browse files
authored
add admin to user imersonate api
1 parent a65cb51 commit 4a29752

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

config/routes.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,20 @@
715715
}
716716
]
717717
},
718+
{
719+
"method": "use",
720+
"route": "/data/User/impersonate",
721+
"handlers": [{
722+
"function": "permissionHandler",
723+
"args": [
724+
["Admin"]
725+
]
726+
}, {
727+
"function": "impersonate",
728+
"args": [
729+
]
730+
}]
731+
},
718732
{
719733
"route": "/data/ExpertsFeedback/find",
720734
"method": "get",

0 commit comments

Comments
 (0)