23 Commits (9b84a887d31374ea25fa2bc67de3d6e2a01ec516)

Author SHA1 Message Date
Julian Lam 9b84a887d3 a huge frickin' number of changes for #2887. This is part of #2463 10 years ago
Barış Soner Uşaklı 203d4d052a fixed my logic fail 10 years ago
Barış Soner Uşaklı fc28cbf887 filter cids with a single .filter thanks @julianlam 10 years ago
Julian Lam 06d547a6cb fixed bug in privilege settings where categories near the end of a list were not having their permissions read properly if earlier categories were disabled, #2887 10 years ago
Barış Soner Uşaklı 094cd6df32 closes #2777 10 years ago
Barış Soner Uşaklı c94c1430b7 api/post/pid route 10 years ago
Julian Lam 8ba05c08fe category privilege rescinding 10 years ago
barisusakli 8e114c2093 moved isAdminOrMod check out of getTopicsByTids 10 years ago
Julian Lam 20ea40133b added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter 10 years ago
barisusakli 15e472db12 on category creation give defaults privs to admins and registered users 10 years ago
barisusakli 420aa5e102 fix moderators 10 years ago
barisusakli 9a21e9646f only use multipart on upload routes,
delete temp files if there is an error in admin,
admin/mods should see topic reply
10 years ago
barisusakli 7de9b998b5 fix typo in ajaxify, closes #2279 10 years ago
barisusakli 4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
11 years ago
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers 11 years ago
barisusakli e420ee5fb6 privilege fix for single category check 11 years ago
barisusakli 1398937dd8 early outs for privs
no need to check if empty array is passed in, happens if there are no
unread topics
remove dupe cids before checking for privileges
11 years ago
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
11 years ago
barisusakli b8b482e287 closes #1555 11 years ago
barisusakli 472e6b5206 privilege cleanup 11 years ago
Julian Lam 3474cdc5ea added new privilege "find", added guest meta group, closed #1282 11 years ago
barisusakli b1aae05a08 closes #1518 11 years ago
barisusakli 3e86bdb38f more work on #1518
still needs more work, category is next
11 years ago