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:
parent
5255120a22
commit
4fdee0aa6d
|
@ -85,6 +85,13 @@ var options = {
|
||||||
principalId: Role.EVERYONE,
|
principalId: Role.EVERYONE,
|
||||||
permission: ACL.ALLOW,
|
permission: ACL.ALLOW,
|
||||||
property: "confirm"
|
property: "confirm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
principalType: ACL.ROLE,
|
||||||
|
principalId: Role.EVERYONE,
|
||||||
|
permission: ACL.ALLOW,
|
||||||
|
property: "resetPassword",
|
||||||
|
accessType: ACL.EXECUTE
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
relations: {
|
relations: {
|
||||||
|
@ -93,13 +100,6 @@ var options = {
|
||||||
model: 'AccessToken',
|
model: 'AccessToken',
|
||||||
foreignKey: 'userId'
|
foreignKey: 'userId'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
principalType: ACL.ROLE,
|
|
||||||
principalId: Role.EVERYONE,
|
|
||||||
permission: ACL.ALLOW,
|
|
||||||
property: "resetPassword",
|
|
||||||
accessType: ACL.EXECUTE
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue