summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/admin/roles (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Copy role on move (#15745)anatawa122025-04-032-0/+3
| | | | | | | | | | | | | | | | | | | | | * feat(backend): copyOnMoveAccount * feat(endpoints): copyOnMoveAccount * feat(frontend): copyOnMoveAccount * docs(changelog): アカウントのマイグレーション時に古いアカウントからロールをコピーできるようになりました。 * fix: spdx header for migration * Update locales/ja-JP.yml * copyOnMoveAccount -> preserveAssignmentOnMoveAccount * fix: check for preserveAssignmentOnMoveAccount --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): ↵かっこかり2024-08-171-2/+13
| | | | | | | | | | | | | ベースロールのポリシー変更時モデレーションログが残るように (#14418) * fix(policies): ベースロールのポリシー変更時モデレーションログが残るように (MisskeyIO#700) (cherry picked from commit 80389a914049f6f26237fde8da7d4e1bd41452fc) * Update Changelog --------- Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* refactor: api/*/update系の必須キーを最低限に (#13824)yupix2024-06-221-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor: clips/updateの必須キーをclipIdのみに * refactor: admin/roles/update の必須キーをroleIdのみに * feat: pages/update の必須キーをpageIdのみに * refactor: gallery/posts/update の必須キーをpostidのみに * feat: misskey-jsの型を更新 * feat: i/webhooks/updateの必須キーをwebhookIdのみに * feat: admin/ad/updateの必須キーをidのみに * feat: misskey-jsの型を更新 * chore: update CHANGELOG.md * docs: update CHANGELOG.md * fix: secretが更新できなくなる場合がある Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> * Update packages/backend/src/server/api/endpoints/gallery/posts/update.ts --------- Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* perf(backend): avoid N+1 selects from `user` table when packing many ↵zyoshoka2024-05-311-1/+4
| | | | | | | entities (#13911) * perf(backend): avoid N+1 selects from `user` table when packing many entities * perf(backend): use `packMany` instead of mapping to `pack`
* fix: allow moderators see role assigned users; fix #13301 (#13315)Cocoa Hoto2024-02-171-1/+1
|
* (re) update SPDX-FileCopyrightTexttamaina2024-02-139-9/+9
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-139-9/+9
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-129-9/+9
|
* refactor(backend): User関連のスキーマ/型の指定を強くする ↵zyoshoka2024-01-311-2/+2
| | | | | | | | | | | | | | | | | (#12808) * refactor(backend): User関連のスキーマ/型の指定を強くする * refactor(backend): `pack()`の引数にスキーマを指定するように * chore: fix ci * fix: 変更漏れ * fix ci --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* Merge pull request from GHSA-7pxq-6xx9-xpgmChocolate Pie2023-12-279-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: fix improper authorization when accessing with third-party application * refactor: refactor type definitions * fix: get rid of unnecessary access limitation * enhance: サードパーティアプリケーションがWebsocket APIを使えるように * fix: add missing parentheses * Revert "fix(backend): add missing kind definition for admin endpoints to improve security" This reverts commit 5150053275594278e9eb23e72d98b16593c4c230. * frontend: 翻訳の抜けを訂正, read:adminとwrite:adminはアクセス発行トークンのデフォルトでは非表示にする * enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを追加 * enhance(test): Websocket APIに対するテストも追加 * enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合 * fix(frontend): アクセストークン発行UIで全ての権限を有効にした際、管理者用APIへのアクセスも許可してしまう問題を修正 * enhance(backend): Websocketの接続に最低限必要な権限を変更 * fix(backend): `/api/admin/meta`をサードパーティアプリケーションからはアクセスできないように * fix(backend): エンドポイントにアクセスするために必要な権限を変更 * fix(frontend/locale): Add missing type declaration * chore: update `misskey-js/src/autogen` --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* enhance: ↵GrapeApple02023-12-211-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) * Create packedAdSchema * admin/emoji/add * admin/get-user-ips * admin/roles/users * admin/get-index-stats * admin/accounts/find-by-email * fix type of admin/ad/list * federation/stats * endpoints * get-online-users-count * i/2fa/register-key * i/2fa/key-done * i/2fa/register * i/apps * i/authorized-apps * i/registry/get-all * i/registry/get * i/registry/get-detail * i/registry/key-with-type * i/registry/scopes-with-domain * i/update-email * i/move * i/webhooks/create * fix miss type * i/webhooks/show * i/webhooks/list * flash/create * roles/users * server-info * test * users/lists/get-memberships * users/achievements * fetch-rss * fetch-external-resources
* fix(backend): add missing kind definition for admin endpoints to improve ↵syuilo2023-12-189-0/+18
| | | | security
* feat: Roleに関するSchemaを追加 (#12572)yupix2023-12-063-0/+22
| | | | | | | | | * feat: Roleに関連するschemaを追加 * feat: 新しいRoleSchemaを使うように * chore: misskey.jsのデータを更新 * chore: misskey-js.api.mdを更新
* perf(backend): createdAtをidから取得するように & ↵syuilo2023-10-161-1/+3
| | | | 無駄なDateインスタンスの生成を避けるように
* lint fixessyuilo2023-10-091-3/+4
|
* enhance: improve moderation logsyuilo2023-09-252-34/+3
|
* improve moderation logsyuilo2023-09-241-7/+4
|
* enhance(backend): refine moderation log (#10939)syuilo2023-09-233-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update DriveService.ts
* update deps (#11820)syuilo2023-09-158-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* chore(backend): Resolve `import/no-default-export` rule violations (#11732)woxtu2023-08-179-18/+9
| | | | | * Disable `import/no-default-export` properly * Disable `import/no-default-export`
* chore: ↵Shun Sakai2023-07-279-0/+45
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え (#11224)okayurisotto2023-07-111-2/+2
| | | | | * refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え * cleanup
* perf(backend): use limit() instead of take()syuilo2023-07-081-1/+1
|
* tweak of f3a16bcd6syuilo2023-06-102-4/+0
|
* ロールのユーザーリストを非公開にできるように (#10987)nenohi2023-06-102-0/+4
| | | | | * ロールのユーザーリストを非公開にできるように * Changelog update
* fix(backend): make isExplorable optional for backward compatibilitytamaina2023-04-201-3/+2
| | | | https://github.com/misskey-dev/misskey/pull/10677#issuecomment-1516394630
* Role timeline setting (#10677)nenohi2023-04-202-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * ロールタイムライン設定 * isRoleTimeline to isExplorable * ポリシーではないので削除 * 型からも * wip * 足りてなかった説 * wip * listはpublicを表示 * 前回の記載修正( #10671 ) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance: ロールの並び順を設定可能にsyuilo2023-03-122-0/+6
|
* :art:syuilo2023-03-011-0/+1
|
* fix of #10145syuilo2023-03-011-1/+1
|
* feat: 時限ロール (#10145)syuilo2023-03-013-40/+17
| | | | | | | | | | | | | | | * feat: 時限ロール * クライアントから期限を確認できるように * リファクタとか * fix test * fix test * fix test * clean up
* enhance: ↵syuilo2023-02-223-3/+74
| | | | exploreで公開ロール一覧とそのメンバーを閲覧できるように
* refactor: remove all unused imports (#9951)Kagami Sascha Rosylight2023-02-162-5/+1
| | | Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* refactor: fix typessyuilo2023-02-092-2/+2
|
* feat: ↵syuilo2023-02-052-0/+12
| | | | | | ロールにアイコンを設定してユーザー名の横に表示できるように Resolve #9761
* refactor: rename role.options -> role.policiessyuilo2023-01-153-10/+10
|
* feat: conditional rolesyuilo2023-01-132-0/+12
| | | | Resolve #9539
* Role (#9437)syuilo2023-01-128-0/+538
* wip * Update CHANGELOG.md * wip * wip * wip * Update create.ts * wip * wip * Update CHANGELOG.md * wip * wip * wip * wip * wip * wip * wip * Update CHANGELOG.md * wip * wip * Update delete.ts * Update delete.ts * wip * wip * wip * Update account-info.vue * wip * wip * Update settings.vue * Update user-info.vue * wip * Update show-file.ts * Update show-user.ts * wip * wip * Update delete.ts * wip * wip * Update overview.moderators.vue * Create 1673500412259-Role.js * wip * wip * Update roles.vue * 色 * Update roles.vue * integrate silence * wip * wip