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
Delgermurun
0ff3fc7dba
rename getParameters to getPostParameters
2014-09-29 15:42:35 +08:00
Sacha Greif
7b194e4cc3
Merge pull request #377 from niklasdstrom/publication-validation
...
Publication validation
2014-09-23 11:22:06 +09:00
Sacha Greif
2a911217e9
Making notifications into their own package
2014-09-20 09:57:09 +09:00
Sacha Greif
a90c254cde
only publish all users to admin
2014-09-20 08:57:58 +09:00
Sacha Greif
d78cb03b89
fix comment publication bug
2014-09-19 20:00:22 +09:00
Mitchell Wulfman
6fc6b9eb78
cleanup while getting familiar with the codebase
2014-09-16 15:18:27 -04:00
Sacha Greif
f67ad0b7ae
regenerate email hash on profile update
2014-09-12 11:54:04 +09:00
Sacha Greif
67de4f432a
Fix gravatar code for good this time (hopefully)
2014-09-12 11:42:44 +09:00
Sacha Greif
c0dc98f7bf
fixing categories
2014-09-08 17:39:59 +09:00
Niklas Ström
7ea30d173d
require user to be admin to listen to allUsers notification
2014-09-08 12:45:29 +08:00
Sacha Greif
d35d516a1c
refactoring publications
2014-09-04 16:39:35 +09:00
Sacha Greif
effa992837
fixing invite bug
2014-09-04 16:39:16 +09:00
Sacha Greif
f45126f8dd
splitting out publications into separate files
2014-09-03 09:56:38 +09:00
Sacha Greif
6dee86463a
paginating user profile on the client
2014-09-03 09:46:39 +09:00
Sacha Greif
21c6dc6854
using sanitizeHTML and adding migrations
2014-09-01 09:33:50 +09:00
Sacha Greif
619577d6cd
migration tweak
2014-08-30 10:04:56 +09:00
Sacha Greif
8ae358181e
Got rid of meteorhacks:npm packages; moved email features to their own package
2014-08-29 10:23:11 +09:00
Sacha Greif
f704c812ef
Fixed rss package
2014-08-28 13:39:30 +09:00
Sacha Greif
be82db9072
Disable resetScroll; Simplify adminUsers publication; fix search controller
2014-08-28 11:10:31 +09:00
Sacha Greif
735f0645db
move votes to their own object on user object
2014-08-23 11:53:37 +09:00
Sacha Greif
df479d43c3
Stop tracking comments in User object; Refactor publications; add data property to user
2014-08-23 11:28:05 +09:00
Sacha Greif
9b8e16f177
now showing comments on user profile page
2014-08-22 17:06:22 +09:00
Sacha Greif
f2808ee764
rerun interrupted migrations
2014-08-22 11:25:05 +09:00
Sacha Greif
063242b78d
Changed comments to CommentsCount; Now tracking _ids of commenters on each Post document
2014-08-22 10:31:05 +09:00
Sacha Greif
8eb91a2c64
notifications are now a menu item
2014-08-20 17:03:54 +09:00
Philip Nuzhnyy
932f56bc1f
merge master
2014-08-12 16:02:05 +02:00
Sacha Greif
509972f18a
Now keeping track of upvoted/downvoted posts & comments.
2014-08-11 10:14:53 +09:00
Sacha Greif
58ca8d389f
Fixing latency compensation issue
2014-08-06 12:02:17 +09:00
Sacha Greif
23c72bd7bb
Updating history
2014-08-06 10:44:19 +09:00
Sacha Greif
7f103be36d
refactoring and style tweaks
2014-08-05 12:25:26 +09:00
Sacha Greif
3f8c868bdc
almost done with newsletter banner
2014-08-05 11:24:54 +09:00
Sacha Greif
af4a9ee413
working on sync/async issues
2014-08-05 10:59:54 +09:00
Sacha Greif
be0ab69c7b
Adding footer and hero modules; working on newsletter subscribe banner
2014-08-05 10:16:05 +09:00
Sacha Greif
68bbae0a4c
improving digest
2014-08-04 20:58:02 +09:00
Sacha Greif
2135c4b11f
Adding cron job to schedule digests
2014-08-04 19:02:21 +09:00
Sacha Greif
aedd1f69d0
Delete all existing notifications to avoid incompatibilities
2014-08-04 11:29:12 +09:00
Sacha Greif
d375bc3c1b
Using templates for on-site notifications too; refactoring a lot of stuff
2014-08-04 11:22:43 +09:00
Sacha Greif
cb4e27d4ba
Add logo to email templates
2014-08-04 10:04:50 +09:00
Sacha Greif
ea9ca1e1c5
Still refactoring notifications
2014-08-04 09:47:10 +09:00
Sacha Greif
79bad9ae83
Finishing work on email templates, setting up test routes
2014-08-03 16:27:54 +09:00
Sacha Greif
78f440e8cd
refactoring email templates
2014-08-03 11:50:10 +09:00
Philip Nuzhnyy
3734564364
email an invite to the new user
2014-08-02 14:05:51 +02:00
Philip Nuzhnyy
adf8f13a7f
add invitation email template
2014-08-02 14:04:34 +02:00
Sacha Greif
6cc5bedb4d
working on html email template
2014-08-02 16:27:12 +09:00
Sacha Greif
1631b9f89b
working on HTML emails
2014-08-02 16:11:54 +09:00
Sacha Greif
d56c6ee1b1
working on digest package
2014-08-02 11:00:28 +09:00
Philip Nuzhnyy
46a3c97c60
do not allow multiple invites for the same person
2014-08-01 14:16:35 +02:00
Philip Nuzhnyy
c25c6dd126
set invitation information for newly signed up users based on existing invites
2014-08-01 14:09:02 +02:00
Philip Nuzhnyy
15c61f22e0
merge inviteUser and inviteUserByEmail into one method
2014-08-01 13:14:24 +02:00