233 Commits (d50dd801edfe77af691c7c249c769a3bd4c838c9)

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
Barış Soner Uşaklı c72da5595a fix: #6806
3 new global privileges
view:users
view:tags
view:groups
6 years ago
Barış Soner Uşaklı 9d1fcf4e36 fix: closes #7217 6 years ago
Julian Lam f659ef4d80 feat: new hook filter:privileges.posts.edit 6 years ago
Julian Lam df6f75eb05 fix: #7298 privilege header misalignment 6 years ago
Barış Soner Uşaklı 54c127d1b2 feat: allow array results 7 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 7 years ago
Barış Soner Uşaklı 13139fe77e return early for guests/spiders 7 years ago
Barış Soner Uşaklı d63db8d20f arrow function 7 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
7 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 😬
7 years ago
Baris Usakli 138154a71c move modules 7 years ago
Barış Soner Uşaklı ac39112271 remove more parseInts 7 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
7 years ago
Barış Soner Uşaklı ee2f9e9434 remove some parseInts 7 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
7 years ago
Barış Soner Uşaklı b57db7fd8e
update groups join to take array of group names (#6834)
* allow groups.join to take an array of group names

* pass an array to groups.join/leave in privileges

* split up groups/membership

* add hits/miss to group cache

* fix typo
7 years ago
Barış Soner Uşaklı 77beaf2e15
Allow local login,closes #6800 (#6803)
* WIP

* reset groups cache after every suite
7 years ago
Julian Lam 545e678e8a fixes #6726 7 years ago
Julian Lam 9e90d1ea5d closes #6557 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ı d5e85c2eb3 closes #6476, closes #6546 7 years ago
Barış Soner Uşaklı a7267df404 closes #6464 7 years ago
Barış Soner Uşaklı 8e8058ec6e closes #6497 7 years ago
Barış Soner Uşaklı e1c6761087 closes #6258 7 years ago
Barış Soner Uşaklı ac1f7eefe5 closes #2304 7 years ago
Barış Soner Uşaklı 08562ad9cc closes #6276 7 years ago
Barış Soner Uşaklı 72140e5338 closes #5991, closes #5884 8 years ago
Barış Soner Uşaklı ff6c6a54c1 make upload permissions global
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
8 years ago
Baris Usakli 025709499c more fixes 8 years ago
Baris Usakli 242dc41aca move privileges to same page 8 years ago
Baris Usakli 4a73621dca chat privilege 8 years ago
Baris Usakli a19537dc25 closes #6137 8 years ago
Barış Soner Uşaklı 2185480c4e switch to eachSeries 8 years ago
Barış Soner Uşaklı 5344edc2a7 closes #5885 8 years ago
Barış Soner Uşaklı e9f8cdc7f0 closes #5855 8 years ago
Barış Soner Uşaklı 38af651072 use _.uniq 8 years ago
Barış Soner Uşaklı c36f25f761 switch .filter to uniq 8 years ago
Barış Soner Uşaklı d65f494c6d closes #5127 8 years ago
Baris Usakli 4903585d88 refactor userPrivileges and groupPrivileges 8 years ago
Barış Soner Uşaklı 59b1d8fbae Merge pull request #5710 from NodeBB/_lodash
Switch from underscore to lodash
8 years ago
Peter Jaszkowiak d4e7db45b7 Use zipObject, more test-related ignores 8 years ago
Barış Soner Uşaklı 937d6dd4df fix acp privilege page not loading 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı 3d1b1a9423 closes #5706 8 years ago
Barış Soner Uşaklı 8db193ff55 privileges style changes 8 years ago
Barış Soner Uşaklı 59d0815073 closes #5637 8 years ago
Julian Lam af2d9fb85b Merge branch 'master' into develop 8 years ago
barisusakli 324e5be7bd privileges tests 8 years ago
barisusakli 1bee91fa22 groups refactor 8 years ago
Julian Lam 72e77772db Merge branch 'master' into develop 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 4bb49a7171 ESlint no-unused-vars 8 years ago
Peter Jaszkowiak 144fa8698c Eslint no-lonely-if 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 604358ecc4 ESlint keyword-spacing, no-multi-spaces 8 years ago
Peter Jaszkowiak a5a3f3089a ESlint no-mixed-operators 8 years ago
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing 8 years ago
Peter Jaszkowiak 532951c24f ESlint space-in-parens, block-spacing 8 years ago
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Peter Jaszkowiak ec544518e8 Use async v2 9 years ago
barisusakli 2476ab3684 closes #5202 9 years ago
barisusakli 96d05b58d4 show deleted replies like regular deleted posts 9 years ago
barisusakli 218a1b7aab closes #5015 9 years ago
Sergii Paryzhskyi e515b791da Fix eslint rules (#5117)
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
9 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 6d946425fa fix tests, circular deps 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
barisusakli d2cbd7e6dc new priv for uploads 9 years ago
barisusakli 795b00a3af closes #4810 9 years ago
barisusakli 14b067a838 closes #4800 9 years ago
barisusakli 09ce48ad33 fix privs 9 years ago
barisusakli 8f594de4c2 fix privs 9 years ago
barisusakli c969870cb6 removed dupe privilegeList, added missing privilege to copyPrivsFrom 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 5ff5a01c4f check for invalid topic 9 years ago
barisusakli 5e5e46e95f closes #4499 9 years ago
Barış Soner Uşaklı 89aa06526d fix indent 9 years ago
barisusakli 86d70eca74 closes #4103 10 years ago
barisusakli 08f52b1e0b remove unused requires 10 years ago
barisusakli fa136ca021 remove unused code 10 years ago