From 4fdee0aa6dce77c0cc94f1e115026f4f61ace496 Mon Sep 17 00:00:00 2001 From: zxvv Date: Sun, 7 Sep 2014 11:26:10 -0500 Subject: [PATCH] Fix last commit, which misplaced an ACL. Move the ACL inside "acls". Signed-off-by: Carey Richard Murphey --- lib/models/user.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/models/user.js b/lib/models/user.js index 3a38f8e4..97ed936c 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -85,6 +85,13 @@ var options = { principalId: Role.EVERYONE, permission: ACL.ALLOW, property: "confirm" + }, + { + principalType: ACL.ROLE, + principalId: Role.EVERYONE, + permission: ACL.ALLOW, + property: "resetPassword", + accessType: ACL.EXECUTE } ], relations: { @@ -93,13 +100,6 @@ var options = { model: 'AccessToken', foreignKey: 'userId' } - }, - { - principalType: ACL.ROLE, - principalId: Role.EVERYONE, - permission: ACL.ALLOW, - property: "resetPassword", - accessType: ACL.EXECUTE } };