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

Commit a763363

Browse files
Fix for children not showing up on profiles (#215)
1 parent da53683 commit a763363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ module.exports = function (options) {
571571
function resolveChildren (profile, done) {
572572
var resolvedChildren = [];
573573

574-
if (!_.isEmpty(profile.children) && (_.contains(profile.userTypes, 'parent-guardian') || _.contains(profile.user.roles, 'cdf-admin'))) {
574+
if (!_.isEmpty(profile.children)) {
575575
async.each(profile.children, function (child, callback) {
576576
seneca.make$(ENTITY_NS).list$({userId: child}, function (err, results) {
577577
if (err) {

0 commit comments

Comments
 (0)