69 Commits (930ffd074f14172ff0ec4bb0a2cad217fda98614)

Author SHA1 Message Date
Barış Soner Uşaklı 035f624758
Remove implicit mod privs. closes #6345 (#7648)
* feat: add upgrade script to give mods privs

* feat: give all privileges when making a moderator

* feat: remove implicit privs

* feat: give global mods default privs

* feat: more priv fixes

* feat: use lodash

* fix: remove implicit mod priv from topic delete

* fix: more privs

* fix: posts.canEdit

* fix: canDelete and canEdit

* fix: tests, remove console.log

* feat: shorter functions

* feat: add tests

* fix: uids

* fix: redis random test fail
6 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 6 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
6 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
6 years ago
Barış Soner Uşaklı ac39112271 remove more parseInts 6 years ago
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
6 years ago
Barış Soner Uşaklı ee2f9e9434 remove some parseInts 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Julian Lam 545e678e8a fixes #6726 7 years ago
Julian Lam cb3b2bd27b closes #6562 7 years ago
Julian Lam 99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
7 years ago
Barış Soner Uşaklı c36f25f761 switch .filter to uniq 8 years ago
Barış Soner Uşaklı d65f494c6d closes #5127 8 years ago
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 8 years ago
HeeL 3fa1c1f927 Fix space-infix-ops linter rule 8 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