35 Commits (839ff069678cc08cb55e0bd5b0dd4bfdac81b114)

Author SHA1 Message Date
pichalite 6c09d3ca5f fixes #4636 (#4639) 9 years ago
barisusakli 5e5e46e95f closes #4499 9 years ago
Barış Soner Uşaklı 89aa06526d fix indent 9 years ago
barisusakli 86d70eca74 closes #4103 9 years ago
barisusakli 75e2228989 closes #3689 10 years ago
barisusakli 4e32751819 added back canEdit 10 years ago
barisusakli 5950f97f96 more refactors 10 years ago
barisusakli 96364935e9 removed deprecated methods 10 years ago
barisusakli 11c70f3a28 closes #2330 10 years ago
barisusakli faae98892d privilege fixes 10 years ago
barisusakli b7b44e13b1 added privileges.topics.filterUids
if a topic is deleted and user doesn't have permissions/admin/mod dont
send notifs
10 years ago
barisusakli 1b2da78fd8 missing lines 10 years ago
barisusakli 1ce3d7284b closes #2995 10 years ago
barisusakli 9e3b2148ba components 10 years ago
barisusakli b2087f94e2 closes #2904 10 years ago
barisusakli b07a522c60 one less query in privileges.topics.get 10 years ago
barisusakli 52c12fa1b1 use wrapper functions getPostsFields and getTopicsFields 10 years ago
barisusakli 5c7487c13b err check 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
Julian Lam c0fc7e9ca4 updating privilege handling to fire two new hooks, filter:privileges.topics.get and filter:category.topics.get 10 years ago
barisusakli fa5ac04cd3 src/topics.js cleanup 10 years ago
barisusakli fd00dddd62 admin/mods always gets the reply privs 10 years ago
barisusakli ec9bf48477 admins/mods can always read topics 10 years ago
barisusakli 4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
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 cfc67d4e90 closes #1924 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 9af12819e3 closes #1731 11 years ago
barisusakli b8b482e287 closes #1555 11 years ago
barisusakli 472e6b5206 privilege cleanup 11 years ago
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB 11 years ago
barisusakli b1aae05a08 closes #1518 11 years ago
barisusakli 29420d6f82 fixed indents 11 years ago
barisusakli 3e86bdb38f more work on #1518
still needs more work, category is next
11 years ago