27 Commits (d1101a7fb407cd15fd315fb7d0ef916a7aa58c94)

Author SHA1 Message Date
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 9 years ago
HeeL 3fa1c1f927 Fix space-infix-ops linter rule 9 years ago
barisusakli 07852862f5 improve helpers.isUserAllowedTo
ability to pass in an array of privileges and a single cid
9 years ago
barisusakli b933385b76 partially revert fa9f1ac7fe
extending module.exports instead of overwriting fixes the issue
9 years ago
barisusakli fa9f1ac7fe fix dependency errors 9 years ago
barisusakli 08f52b1e0b remove unused requires 9 years ago
barisusakli b2087f94e2 closes #2904 10 years ago
barisusakli 604dac88e3 closes #2382, closes #2130 11 years ago
barisusakli 4440260f8f closes #2275 11 years ago
barisusakli 70657251b9 no need for return 11 years ago
Julian Lam 44175188c4 handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method 11 years ago
barisusakli 37d7756271 hasEnoughRep can take an array
user follow uid checks
11 years ago
barisusakli 7d93926ef7 removed async.map 11 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 7e82d3d9a5 fix guest priv 11 years ago
barisusakli efdd795084 closes #1922 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 472e6b5206 privilege cleanup 11 years ago
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB 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
barisusakli 292e4bbdd6 fixed post privilege privilege 11 years ago
barisusakli 4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
11 years ago