56 Commits (d4e7db45b781ac65b7550d3ca8f3047e231e7fee)

Author SHA1 Message Date
Peter Jaszkowiak d4e7db45b7 Use zipObject, more test-related ignores 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı 8db193ff55 privileges style changes 8 years ago
Julian Lam 995f8296a4 linting 8 years ago
Julian Lam e71bd7a27f Merge branch 'master' into styleguide 8 years ago
barisusakli ca1fe557c7 topic controller tests 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 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 0efe315790 closes #4631 9 years ago
barisusakli d7cda83c8e fix lang key 9 years ago
barisusakli 56d325bd86 privilege fixes 9 years ago
barisusakli 037b901e85 closes #4919 9 years ago
Ben Lubar f62da5c4e9 see NodeBB/NodeBB#4909 9 years ago
Ben Lubar 26df552d55 Add edit, delete, and topics:delete permissions for users acting on their own posts 9 years ago
psychobunny b37b083a4d new privilege: Access Topic
differentiation between Access Category and Access Topic, ie. allows you
to see the category view but not actually enter the topic itself
9 years ago
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 11 years ago
barisusakli 5c7487c13b err check 11 years ago
Julian Lam 20ea40133b added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter 11 years ago
Julian Lam c0fc7e9ca4 updating privilege handling to fire two new hooks, filter:privileges.topics.get and filter:category.topics.get 11 years ago
barisusakli fa5ac04cd3 src/topics.js cleanup 11 years ago
barisusakli fd00dddd62 admin/mods always gets the reply privs 11 years ago
barisusakli ec9bf48477 admins/mods can always read topics 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 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