Commit Graph

86 Commits (05ddd60c5e257b3773b400ae5aec18b157ce3856)

Author SHA1 Message Date
Barış Soner Uşaklı 3ecbb624d8
fix: privileges added by plugins ()
* fix: privileges added by plugins

when copying a categories privileges, privileges added by plugins will be copied as well
when purging a category privileges added by plugins will be purged as well
show plugin privileges in privileges.<categories/admin/global>.get
show plugin privileges in privileges.<categories/admin/global>.userPrivileges
show plugin privileges in privileges.<categories/admin/global>.groupPrivileges

* fix: typo
Julian Lam 856ba78a5f fix: replace logic in isPrivilegedOrSelfAndPasswordMatch to use privileges.users.canEdit
Julian Lam 0a41741b7e refactor: deprecate picture update socket call, new API routes for picture update
Barış Soner Uşaklı 1f91a31327
Priv hook fix ()
* fix: , fire hooks properly for priv changes

* fix: admin/global group privs

dont allow invalid privs
Barış Soner Uşaklı 6869920e06
fix: , fire hooks properly for priv changes ()
Julian Lam 69c96dd23c refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation
Julian Lam cc6cbfcdc4
Flags API ()
* feat: new routes for flags API

+ flag get
+ flag creation, migration from socket method
+ flag update, migration from socket method
* fixed bug where you could not unassign someone from a flag

* feat: tests for new flags API

added missing files for schema update

* fix: flag tests to use Write API instead of sockets

* feat: flag notes API + tests

* chore: remove debug line

* test: fix breaking test on mongo
Barış Soner Uşaklı 9e07efc126 fix: use socket.request.headers
Barış Soner Uşaklı ed534f34f5 fix: buildReqObject headers for socket.io calls
gasoved a0dd90804c
fix: exempt ST from being del/res via last main posts ()
gasoved aa0137b1c4
feat: rescheduling (editing ST) ()
gasoved 077330b764
feat: scheduled topics ()
* feat: scheduled topics

* refactor: linting fixes

* fix: tests

* fix(test): race condition

* fix: make a single request
Barış Soner Uşaklı a8f7b24452
fix: , pass all data from client to Topics.reply ()
* fix: , pass all data from client to Topics.reply

so plugins can set custom fields
refactor and use setDefaultPostData

* fix: circular json error

* refactor: change params
Barış Soner Uşaklı eb360351e5 fix: , fix guest handles
Barış Soner Uşaklı 5c59354c58 fix: , allow admins to add themselves to private groups
Julian Lam 2a939aad8d fix: regression via c1b3079d93
Also refactored privilege render logic so that it no longer needs a server-side hack to render column count
Julian Lam c1b3079d93 feat: category privilege API routes
closes 
Peter Jaszkowiak 23f212a4c0 chore: eslint prefer-destructuring
Peter Jaszkowiak 62869bae3d chore: eslint function-paren-newline
Peter Jaszkowiak dab3b23575 chore: eslint no-var, vars-on-top
Peter Jaszkowiak b56d9e12b5 chore: eslint prefer-arrow-callback
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template
Peter Jaszkowiak 4ee0f1459d chore: eslint import/newline-after-import
Julian Lam a6fa351b72 feat: pass req.session into buildReqObject
gasoved 53e0d4d2e0 feat: banned-users group
gasoved cabec378f4 fix: openapi test specs
gasoved eaf9d2e44a fix: include admins, limit to category mods, correct privilege name
gasoved eb642f40b9 feat: , ability to delete a post's diffs
Julian Lam 425eca145b refactor(topic-events): fire topic event logging in topics/tools instead, pass uid into payload
Julian Lam ab2e1ecb40 feat(topic-events): work in progress topic events logic and client-side implementation
Julian Lam 966c4117ec refactor(api): post move to write API
Julian Lam e118e59ce0 refactor(api): post diffs to use write API
Julian Lam 9ecfac9b68 feat(api): , migrate rest of the getObject controllers to Write API
Julian Lam e267f29584 feat(api): , migrate /api/post/pid/:pid to Write API
Julian Lam 32e36f7b2e feat(api): group ownership API route, switch client-side to use API route
Julian Lam 1cd2689cf6 refactor(api): deprecated groups update socket in favour of API lib
Julian Lam ef7d6db912 feat: server-side work for
- rename Thumbs.commit to Thumbs.migrate
- new PUT method that calls Thumbs.migrate
- `checkThumbPrivileges` now takes a single object parameter (ins. of req/res)
Julian Lam 7e9e08f718 feat: server-side routes for handling multiple topic thumbnails
closes , requires 'topic-thumb-refactor' branch of composer-default
Barış Soner Uşaklı 0f480be658 fix: , dont prevent admins from deleting other users
Barış Soner Uşaklı 1f32d38778 fix: default values, clamp postsPerPage/topicsPerPage to max
Barış Soner Uşaklı 9da0ed400e fix: , load raw settings before merging
psychobunny f7558c6052 fix: notification on group.leave incorrectly showing "Guest has left X group"
Barış Soner Uşaklı b46d2f93e6 fix: , add missing lang strings
Barış Soner Uşaklı 1eb5fabdb1 feat: , postQueue setting for category
Barış Soner Uşaklı 700736535c fix: guests dont always have sid
Barış Soner Uşaklı a4fe4d3cf5 fix: allow guests to see their replies immediately
Barış Soner Uşaklı 546f58bf1f fix: timestamp in queue, add post queue strings
Barış Soner Uşaklı 4f37eddc5e feat: clear reset tokens on user delete
Barış Soner Uşaklı e32cd31ec6 fix:
Julian Lam 6e2da9966e refactor: move plugin hook methods to plugin.hooks.*