Commit Graph

79 Commits (d4bf0ae743c421d53fb59e960126668a2ccdee10)

Author SHA1 Message Date
Julian Lam 0fc9fdd53d fix: throw generic not-allowed error on groups.join if a non-owner tries to add another user to a group
Julian Lam f043dcec96 fix: remove socketGroups.kick
Julian Lam 9d49ec60a1 fix: remove socketGroups.issueMassInvite
Julian Lam b53f92fa2e fix: handle client-side acceptAll and rejectAll
Julian Lam 18c45b4461 refactor: group invitations; issuing, accepting, rejecting; now via API
Julian Lam 0788fb5118 feat: , add new GET routes to retrieve pending and invited members of a group, plus accept/reject pending
Barış Soner Uşaklı 02ea17ea1b breaking: remove deprecated groups socket calls
socket.emit('groups.join') removed use `PUT /api/v3/groups/:slug/membership/:uid`
socket.emit('groups.leave') removed use `DELETE /api/v3/groups/:slug/membership/:uid`
socket.emit('groups.grant') removed, `PUT /api/v3/groups/:slug/ownership/:uid`
socket.emit('groups.rescind') removed, `DELETE /api/v3/groups/:slug/ownership/:uid`
socket.emit('groups.update') removed, `PUT /api/v3/groups/:slug`
socket.emit('groups.create') removed, `POST /api/v3/groups`
socket.emit('groups.delete') removed, `DELETE /api/v3/groups`
Barış Soner Uşaklı e3c0f0be0a refactor: remove unused
Barış Soner Uşaklı 07e2741ea6 breaking: remove deprecated admin.groups methods
Barış Soner Uşaklı fb363957d1 refactor: tab rules
Barış Soner Uşaklı 4359e5c97c refactor: remove tabs after declaration
gasoved 8168c6c407
fix: purge uploaded images accordingly ()
* fix: purge uploaded images accordingly

* fix: tests

* fix: relative paths
Barış Soner Uşaklı 5c59354c58 fix: , allow admins to add themselves to private groups
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
Julian Lam 80ee3dfbd1 fix(api): tests
Barış Soner Uşaklı 1f43e98f8b fix: allow admins adding users to global moderators
add new test
Barış Soner Uşaklı 75024c3580 refactor: remove console.log, extra require
Barış Soner Uşaklı b26e9b5993 fix: , dont save escaped data when renaming groups
Barış Soner Uşaklı e367c5403e refactor: move groups.leave, fix some tests
Barış Soner Uşaklı 8ae1f81cf4 feat: refactor groups.delete
Barış Soner Uşaklı d69e503d21 feat: move groups.join to api
Barış Soner Uşaklı 872bacf1c4
Admin/users ()
* feat: wip admin/users

* feat: more work

* feat: more fixes

* feat: , verified/unverified user groups

* feat: add filter

* feat: change user search to use filters array

* refactor: remove unused search call

* fix: tests

* fix: cant join system groups

* fix: upgrade script
Julian Lam ebcb664b41 fix(writeapi): tests
Barış Soner Uşaklı 73ddf1cb98 fix: groups.updateCover
Barış Soner Uşaklı ec5582b53c
feat: add privilege give/rescind hooks ()
* feat: add privilege give/rescind hooks

action:privileges.categories.give/rescind
action:privileges.global.give/rescind

breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`

* fix: tests, privileges renamed
Julian Lam 442fe65f5a fix: remove tests related to group covers, as route is gone
Barış Soner Uşaklı 61da8c29ac fix: group create/join/update name validation
Baris Usakli c2cd7de891 fix: , dont show hidden groups in search
Barış Soner Uşaklı 3caa387ac6 fix: tests
Barış Soner Uşaklı 96ab8d05aa fix: only allow png/jpg/bmp in cover/profile images
Julian Lam 1796b65d34 feat: option to restrict group leaving, closes
Barış Soner Uşaklı f15c7f12b3 refactor: async/await
Barış Soner Uşaklı fa26855671 feat: , make isInvited, isPending work with uids
Julian Lam c44bf48c01 fix: removed console.logs
Julian Lam f736f0b382 fix: broken tests from 71b205a889
Barış Soner Uşaklı 9d1fcf4e36 fix: closes
Barış Soner Uşaklı 7e828404f6 fix:
dont save relative_path in db for group covers
Barış Soner Uşaklı afa84023a2 closes
Barış Soner Uşaklı b6771836cf closes
Baris Usakli 566564ed74 fix redis tests
fixed typo in groups/data.js
added postcount,viewcount to int fields
Barış Soner Uşaklı 175e13edf6 group data
Barış Soner Uşaklı b57db7fd8e
update groups join to take array of group names ()
* 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
Barış Soner Uşaklı 805da98a36 remove unnecessary groups.resetCache calls
Barış Soner Uşaklı cdc3ef09e9 closes
Barış Soner Uşaklı 9132743870
Baris Usakli ecc2b9560d parseInt data.hidden add tests
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
Baris Usakli de55c8e431 closes