4 Commits (9f0fff443425046ce264a099fd442408373fd4e0)

Author SHA1 Message Date
barisusakli ca90afd544 #1992
(drunk) not even done yet
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 5497b8c419 striptags 11 years ago
barisusakli 64d04f7aa6 closes #1803 11 years ago