Fix last commit, which misplaced an ACL.

Move the ACL inside "acls".
Signed-off-by: Carey Richard Murphey <rich@murphey.org>
This commit is contained in:
zxvv 2014-09-07 11:26:10 -05:00
parent 5255120a22
commit 4fdee0aa6d
1 changed files with 7 additions and 7 deletions

View File

@ -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
}
};