62 Commits (930ffd074f14172ff0ec4bb0a2cad217fda98614)

Author SHA1 Message Date
Julian Lam 8a6a58ee43
feat: added new admin option newbiePostEditDuration (#7737)
* feat: added new admin option newbiePostEditDuration

Also:
  - Grammar-checked a couple language strings
  - Moved a couple form inputs around in new user restrictions
  - Added a test for the new option
  - fix: 'defore' typo
6 years ago
Baris Usakli 667bc67f04 fix: dont allow edit if post is deleted by someone else 6 years ago
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
Julian Lam f659ef4d80 feat: new hook filter:privileges.posts.edit 6 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 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ı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Julian Lam 9e90d1ea5d closes #6557 7 years ago
Julian Lam cb3b2bd27b closes #6562 7 years ago
Barış Soner Uşaklı 72140e5338 closes #5991, closes #5884 7 years ago
Baris Usakli a19537dc25 closes #6137 7 years ago
Barış Soner Uşaklı 5344edc2a7 closes #5885 8 years ago
Barış Soner Uşaklı 38af651072 use _.uniq 8 years ago
Barış Soner Uşaklı 8db193ff55 privileges style changes 8 years ago
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 8 years ago
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli 96d05b58d4 show deleted replies like regular deleted posts 8 years ago
barisusakli 218a1b7aab closes #5015 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 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 56d325bd86 privilege fixes 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
barisusakli 795b00a3af closes #4810 9 years ago
barisusakli 14b067a838 closes #4800 9 years ago
barisusakli 5ff5a01c4f check for invalid topic 9 years ago
barisusakli 5e5e46e95f closes #4499 9 years ago
barisusakli fa136ca021 remove unused code 9 years ago
barisusakli 11c70f3a28 closes #2330 10 years ago
barisusakli 3ffd3a5d3c closes #2970, closes #3078 10 years ago
barisusakli b2087f94e2 closes #2904 10 years ago
Barış Soner Uşaklı 73505e9bd0 closes #2247 10 years ago
Barış Soner Uşaklı c94c1430b7 api/post/pid route 10 years ago
Julian Lam b65d518a97 properly handling error for hook filter:privileges.posts.filter 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
barisusakli c18de5cdd2 posts/recent.js refactor 10 years ago
barisusakli 06f66337fb anon checks
less db calls for uid 0
10 years ago
barisusakli 37d7756271 hasEnoughRep can take an array
user follow uid checks
10 years ago
barisusakli eab180f305 crash fix 11 years ago
barisusakli 4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
11 years ago
barisusakli 57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
11 years ago
barisusakli 0cfa430444 crash fix 11 years ago