Add default user ACLs

This commit is contained in:
Ritchie Martori 2013-12-17 20:42:28 -08:00
parent 0557237fa7
commit 3152960336
1 changed files with 24 additions and 0 deletions

View File

@ -63,6 +63,30 @@ var options = {
principalId: Role.OWNER,
permission: ACL.ALLOW,
property: 'removeById'
},
{
principalType: ACL.ROLE,
principalId: Role.EVERYONE,
permission: ACL.ALLOW,
property: "login"
},
{
principalType: ACL.ROLE,
principalId: Role.EVERYONE,
permission: ACL.ALLOW,
property: "logout"
},
{
principalType: ACL.ROLE,
principalId: Role.OWNER,
permission: ACL.ALLOW,
property: "findById"
},
{
principalType: ACL.ROLE,
principalId: Role.OWNER,
permission: ACL.ALLOW,
property: "updateAttributes"
}
]
};