Closed louisstow closed 11 years ago
List of user roles in order of precedence. Access to one role will give access to every role above it.
admin
- At least one admin account exists when sproute is first installed. Defined in config.jsonowner
- Will ensure _owner
will match session.user._id
member
- Must at least be logged in (session.user
exists)anyone
- No rule
stranger
- Must not be logged in
Give the developer fine grain control over who can do what with the REST apis. Base it on the in-built user accounts. Potentially add into the controller file?
Allow permission on any url, including pages. Needs to cover the following:
user.name == admin
)