Commit Graph

89 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
fb363957d1 refactor: tab rules 2021-11-18 16:42:18 -05:00
Barış Soner Uşaklı
c26870d227 feat: #10008, add history entry for note deletion 2021-11-18 13:59:39 -05:00
Barış Soner Uşaklı
bc4b19b4d7 fix: typo in flags 2021-10-28 15:12:12 -04:00
Barış Soner Uşaklı
3ecbb624d8 fix: privileges added by plugins (#9802)
* 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
2021-09-11 16:43:48 -04:00
Julian Lam
856ba78a5f fix: replace logic in isPrivilegedOrSelfAndPasswordMatch to use privileges.users.canEdit 2021-09-03 17:13:55 -04:00
Julian Lam
0a41741b7e refactor: deprecate picture update socket call, new API routes for picture update 2021-09-03 16:59:42 -04:00
Barış Soner Uşaklı
1f91a31327 Priv hook fix (#9775)
* fix: #9773, fire hooks properly for priv changes

* fix: admin/global group privs

dont allow invalid privs
2021-09-03 11:58:17 -04:00
Barış Soner Uşaklı
6869920e06 fix: #9773, fire hooks properly for priv changes (#9774) 2021-09-03 11:22:42 -04:00
Julian Lam
69c96dd23c refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation 2021-07-30 13:29:13 -04:00
Julian Lam
cc6cbfcdc4 Flags API (#9666)
* 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
2021-07-16 13:44:42 -04:00
Barış Soner Uşaklı
9e07efc126 fix: use socket.request.headers 2021-04-23 12:41:58 -04:00
Barış Soner Uşaklı
ed534f34f5 fix: buildReqObject headers for socket.io calls 2021-04-23 12:37:59 -04:00
gasoved
a0dd90804c fix: exempt ST from being del/res via last main posts (#9468) 2021-04-07 08:58:52 -04:00
gasoved
aa0137b1c4 feat: rescheduling (editing ST) (#9445) 2021-03-30 17:51:23 -04:00
gasoved
077330b764 feat: scheduled topics (#9399)
* feat: scheduled topics

* refactor: linting fixes

* fix: tests

* fix(test): race condition

* fix: make a single request
2021-03-24 14:28:02 -04:00
Barış Soner Uşaklı
a8f7b24452 fix: #9395, pass all data from client to Topics.reply (#9396)
* fix: #9395, 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
2021-03-15 15:34:05 -04:00
Barış Soner Uşaklı
eb360351e5 fix: #9394, fix guest handles 2021-03-15 14:03:35 -04:00
Barış Soner Uşaklı
5c59354c58 fix: #9389, allow admins to add themselves to private groups 2021-03-14 15:20:14 -04:00
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
2021-03-12 14:22:16 -05:00
Julian Lam
c1b3079d93 feat: category privilege API routes
closes #9342
2021-03-04 12:46:31 -05:00
Peter Jaszkowiak
23f212a4c0 chore: eslint prefer-destructuring 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
62869bae3d chore: eslint function-paren-newline 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
dab3b23575 chore: eslint no-var, vars-on-top 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5 chore: eslint prefer-arrow-callback 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5 chore: eslint prefer-template 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
4ee0f1459d chore: eslint import/newline-after-import 2021-02-08 18:06:44 -05:00
Julian Lam
a6fa351b72 feat: pass req.session into buildReqObject 2021-02-05 14:31:31 -05:00
gasoved
53e0d4d2e0 feat: banned-users group 2021-02-03 15:22:44 -05:00
gasoved
cabec378f4 fix: openapi test specs 2021-02-03 09:49:28 -05:00
gasoved
eaf9d2e44a fix: include admins, limit to category mods, correct privilege name 2021-02-03 09:49:28 -05:00
gasoved
eb642f40b9 feat: #9109, ability to delete a post's diffs 2021-02-03 09:49:28 -05:00
Julian Lam
425eca145b refactor(topic-events): fire topic event logging in topics/tools instead, pass uid into payload 2021-01-27 13:16:49 -05:00
Julian Lam
ab2e1ecb40 feat(topic-events): work in progress topic events logic and client-side implementation 2021-01-27 13:16:49 -05:00
Julian Lam
966c4117ec refactor(api): post move to write API 2021-01-18 15:31:14 -05:00
Julian Lam
e118e59ce0 refactor(api): post diffs to use write API 2021-01-18 14:26:22 -05:00
Julian Lam
9ecfac9b68 feat(api): #9123, migrate rest of the getObject controllers to Write API 2020-12-29 10:32:01 -05:00
Julian Lam
e267f29584 feat(api): #9123, migrate /api/post/pid/:pid to Write API 2020-12-29 10:32:01 -05:00
Julian Lam
32e36f7b2e feat(api): group ownership API route, switch client-side to use API route 2020-12-22 14:26:31 -05:00
Julian Lam
1cd2689cf6 refactor(api): deprecated groups update socket in favour of API lib 2020-12-22 13:22:01 -05:00
Julian Lam
ef7d6db912 feat: server-side work for #9047
- rename Thumbs.commit to Thumbs.migrate
- new PUT method that calls Thumbs.migrate
- `checkThumbPrivileges` now takes a single object parameter (ins. of req/res)
2020-12-09 10:42:41 -05:00
Julian Lam
7e9e08f718 feat: server-side routes for handling multiple topic thumbnails
closes #8994, requires 'topic-thumb-refactor' branch of composer-default
2020-12-09 10:42:41 -05:00
Barış Soner Uşaklı
0f480be658 fix: #9085, dont prevent admins from deleting other users 2020-12-09 10:15:30 -05:00
Barış Soner Uşaklı
1f32d38778 fix: default values, clamp postsPerPage/topicsPerPage to max 2020-12-07 12:51:11 -05:00
Barış Soner Uşaklı
9da0ed400e fix: #9081, load raw settings before merging 2020-12-07 12:01:44 -05:00
psychobunny
f7558c6052 fix: notification on group.leave incorrectly showing "Guest has left X group" 2020-12-01 13:58:15 -05:00
Barış Soner Uşaklı
b46d2f93e6 fix: #9019, add missing lang strings 2020-12-01 12:38:23 -05:00
Barış Soner Uşaklı
1eb5fabdb1 feat: #8900, postQueue setting for category 2020-11-30 22:36:30 -05:00
Barış Soner Uşaklı
700736535c fix: guests dont always have sid 2020-11-30 11:51:52 -05:00
Barış Soner Uşaklı
a4fe4d3cf5 fix: allow guests to see their replies immediately 2020-11-30 11:08:00 -05:00
Barış Soner Uşaklı
546f58bf1f fix: timestamp in queue, add post queue strings 2020-11-28 22:03:08 -05:00