Vulcan/client/views
Charlie DeTar ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
..
admin Renaming "test" autoform to "settings" 2014-09-29 11:09:36 +09:00
comments Fully abstract isAdmin 2014-10-03 16:21:06 -06:00
common Rename common template/view 'gravatar' to 'avatar' 2014-09-27 12:05:15 -05:00
errors cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
nav Making notifications into their own package 2014-09-20 09:57:09 +09:00
posts Fully abstract isAdmin 2014-10-03 16:21:06 -06:00
settings Minor form tweaks 2014-09-29 15:40:09 +09:00
users Fully abstract isAdmin 2014-10-03 16:21:06 -06:00