User: fix `confirm` permissions

Enable authentication for all User unit-tests to check that the ACLs are
correctly configured.

Fix the rule for `confirm` - the correct permission is `ALLOW`, not
`ACL.ALLOW`.
This commit is contained in:
Miroslav Bajtoš 2014-10-23 13:16:53 +02:00
parent 97a8c3acb2
commit b57cd3e409
2 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,7 @@
{
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ACL.ALLOW",
"permission": "ALLOW",
"property": "confirm"
},
{

View File

@ -28,6 +28,7 @@ describe('User', function(){
});
beforeEach(function (done) {
app.enableAuth();
app.use(loopback.token());
app.use(loopback.rest());
app.model(User);