Commit graph

8 commits

Author SHA1 Message Date
Anthony Mayer
494f27bf9b Fixing duplicate search logs. 2014-11-28 17:46:23 -08:00
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
Sacha Greif
0a071460f6 Changing navItems to primaryNav and adding secondaryNav 2014-08-15 11:51:30 +09:00
Sacha Greif
d97df27f7f finishing view parameters flexibiltification 2014-06-23 12:28:40 +09:00
Sacha Greif
591ae27014 adding telescope-lib package for utility functions 2014-06-23 12:08:01 +09:00
Sacha Greif
5ae5dfab9a simplifying nav items markup 2014-06-23 11:46:12 +09:00
Sacha Greif
07eaf99f0a modularizing nav 2014-06-23 11:40:21 +09:00
Sacha Greif
21998aa012 putting search in its own package 2014-06-23 11:05:06 +09:00
Renamed from collections/searches.js (Browse further)