Skip to content

Commit 9e68786

Browse files
author
david
committed
fix issue. Now users own themselves.
1 parent 901b2ec commit 9e68786

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/api/user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function RouterApi(idmcore, router, strategies) {
4141
var user = req.body;
4242
var entity_type = "/user";
4343
var entity_id = ids.buildId(req.body.user_name, req.body.auth_type);
44-
idmcore.createEntity(req.user, entity_id, entity_type, user)
44+
//for consistency in owner policy lock evaluation, users own themselves.
45+
idmcore.createEntityAndSetOwner(req.user, entity_id, entity_type, user, entity_id)
4546
.then(function (read) {
4647
res.json(read);
4748
}).catch(function (error) {

0 commit comments

Comments
 (0)