sakaiproject/Hilary — pull request #91 by simong (2012-09-21 12:08:32+00:00)
Title: Issue64

This PR adds support for a cleaner admin check.
The `isAdmin`, `isTenantAdmin` and `isGlobalAdmin` methods are now exposed on the `User` model. The methods that were on the `Context` object have been removed so it now only holds `tenant` and `user` methods.

You can check if a user is an admin by doing:
```javascript
if (ctx.user().isAdmin()) {
...
}
````

A global admin gets created once on server startup with the default account/password: `administrator/administrator` There is no functionality for logging in but that should be coming up shortly.