Commit graph

23 commits

Author SHA1 Message Date
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
shaialon
8eaab14ede Refactor code with reuse. 2014-09-26 23:20:00 +03:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Philip Nuzhnyy
895b434b44 update inviteUser call to work with the new method 2014-08-01 13:15:58 +02:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
b2afbe6ac7 merging with master 2013-11-21 11:41:04 +09:00
Sacha Greif
4cd03a6a11 refactored notifications; added notifications for new users 2013-11-18 11:30:58 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Toam
c527a00a62 merge 2013-11-09 02:02:05 +01:00
Sacha Greif
4e27e5c8c1 improving user dashboard 2013-11-08 11:15:02 +09:00
Sacha Greif
1c5c8fb575 improved user dashboard even more! 2013-11-08 11:10:23 +09:00
Toam
c06fe46a83 Localisation Common, Errors, Notifications and Users 2013-11-06 01:01:56 +01:00
Sacha Greif
65e59767d1 got rid of digest publications; simplified digest subscription; publishing comment author user 2013-10-26 10:37:32 +09:00
Sacha Greif
64eb8644ec tweaking createNotification calls 2013-10-23 20:27:19 +09:00
Sacha Greif
75714297e3 change createNotifications syntax 2013-10-23 20:20:10 +09:00
Sacha Greif
2cfbcd2360 improving notifications 2013-10-23 10:21:08 +08:00
Sacha Greif
a9fac1ed9a working on user profile and user edit 2013-10-09 20:50:26 +09:00
Sacha Greif
9bf59c6106 added link for deleting users 2013-02-22 16:17:37 +09:00
Sacha Greif
f604ea593b refactored notifications and added notification for new account approval 2013-02-22 15:41:15 +09:00
Sacha Greif
a886b00123 refactored part of the app to be clearer 2012-10-19 19:20:14 +09:00
Sacha Greif
159492d12e cleaned up router 2012-10-11 08:23:52 +09:00
Sacha Greif
e9119ef036 reworking invite system 2012-10-05 13:59:40 +09:00
Tom Coleman
e4f55a6377 Start of reorganization. 2012-10-04 11:17:57 +10:00
Renamed from client/templates/user_item.js (Browse further)