Evan Prodromou 1525acdca1 Extend authorization framework to cover login and API use
I've extended the rights framework (centering on the Right class and Profile::hasRight()) to cover
Web login and API use. This will make it possible to prevent login and API use by users.

I added two new Right constants to the Right class: WEBLOGIN and API. I check these rights using
Profile::hasRight() when initializing users. If the rights check fails, I throw an exception.

I created a new AuthorizationException class for this particular
exception, in order to allow a different UI for these kinds of exceptions (or whatever).
2011-02-21 10:20:42 -05:00
..
2011-01-31 11:08:15 -08:00
2010-10-20 20:01:12 +02:00
2011-01-14 21:53:39 +01:00
2011-02-15 12:26:40 -05:00
2011-01-29 00:33:13 +01:00
2009-11-18 18:25:36 -08:00
2010-09-12 18:34:33 +02:00
2011-01-29 00:33:13 +01:00
2010-06-03 16:09:47 -07:00
2011-01-29 00:33:13 +01:00
2009-11-19 12:00:25 -05:00
2011-01-29 00:33:13 +01:00
2010-03-01 18:49:39 -05:00
2010-01-10 14:06:52 -08:00
2010-02-20 13:23:08 -05:00
2010-11-04 19:16:19 +01:00
2010-10-31 00:58:35 +02:00
2010-12-30 12:15:34 -08:00
2011-01-29 00:33:13 +01:00
2011-01-29 00:33:13 +01:00