Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 685437d

Browse files
authored
Add qs id as a possible source of value for the perm isParentOf (#293)
1 parent 8430fe1 commit 685437d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/users/is-parent-of.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function isParentOf (args, cb) {
1010
if (_.isUndefined(childrenId) && args.params.profile) childrenId = args.params.profile.userId;
1111
if (_.isUndefined(childrenId) && args.params.query) childrenId = args.params.query.userId;
1212
if (_.isUndefined(childrenId) && args.params.profileId) childrenProfileId = args.params.profileId;
13+
if (_.isUndefined(childrenId) && args.params.id) childrenId = args.params.id;
1314
var getChildrenUserId = function (wfCb) {
1415
if (!childrenId && childrenProfileId) {
1516
seneca.act({role: 'cd-profiles', cmd: 'load', id: childrenProfileId}, function (err, profile) {

0 commit comments

Comments
 (0)