snapframework/snap — pull request #25 by dzhus (2012-02-22 08:51:41+00:00)
Title: Support roles in AuthUser

Somewhy the existing implementation of Auth infrastructure doesn't
support user roles properly, not maintaining roles list in data store
at all. This simple patch fixes that. The patch is tested in a project
I'm working on.

Note that data stores created with previous versions of AuthManager
will cause the error:

Malformed JSON auth data store. Error: key "roles" not present