Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ロール機能 #6305

Closed
SanMurakami opened this issue Apr 29, 2020 · 11 comments
Closed

ロール機能 #6305

SanMurakami opened this issue Apr 29, 2020 · 11 comments
Assignees
Labels
✨Feature This adds/improves/enhances a feature 🔥high priority

Comments

@SanMurakami
Copy link
Contributor

ユーザーやグループ毎に詳細な権限を管理できる機能があれば非常に便利だと思います。

例えば

  • 権限グループAは絵文字のアップロードができる
  • 権限グループBは他人の投稿を削除したり凍結できる(モデレーター機能)
  • 権限グループCは全機能にアクセスできる(Admin)
  • 通常はグループ無しで一般権限

また、特定のユーザーのみファイルをアップロード出来なくする(スパム対応)等もあれば便利かと思います。

実装はかなり大変な物になると思いますが、この基礎をすべてのAPIで対応できれば拡張性がかなり広がると思います。

@SanMurakami SanMurakami added the ✨Feature This adds/improves/enhances a feature label Apr 29, 2020
@syuilo
Copy link
Member

syuilo commented Oct 13, 2021

新たにDBに

  • Role(=権限グループ)
    • Role名(e.g. モデレーター)
    • 権限のリスト(e.g. silence, suspend, passwordReset)
  • Roleとユーザーの紐づけ
    • userId
    • roleId

テーブルが必要そうか

あと権限をどのくらいの粒度で作っていくかを考えながら権限洗い出ししないと

memo

  • silence
  • suspend
  • roleManage
  • roleAssign

@Johann150
Copy link
Contributor

maybe related to #8262 ? It might be solvable by giving different OAuth access scopes to users.

@syuilo syuilo changed the title Discordのような権限管理機能 ロール機能 Dec 30, 2022
@syuilo
Copy link
Member

syuilo commented Dec 30, 2022

やるか

@syuilo syuilo mentioned this issue Dec 31, 2022
10 tasks
@tamaina
Copy link
Contributor

tamaina commented Dec 31, 2022

Discordってロールにメンションを送る機能があるけど、Misskeyはどうしようというのがある

@syuilo
Copy link
Member

syuilo commented Dec 31, 2022

グループに対するメンションは考えたことある

@syuilo
Copy link
Member

syuilo commented Dec 31, 2022

GroupとRole割と機能的に被りそう

@tamaina
Copy link
Contributor

tamaina commented Dec 31, 2022

かも

@tamaina
Copy link
Contributor

tamaina commented Dec 31, 2022

ん〜、実装的には似るけど機能的な被りはないかも?
グループにメンションを送れるならロールにメンションはなくて良さそう

@syuilo
Copy link
Member

syuilo commented Dec 31, 2022

ロールに指定のグループを紐付けるオプションとか用意すれば実質的にロールに対するメンションができることになりそう

@tamaina
Copy link
Contributor

tamaina commented Dec 31, 2022

ロールに指定のグループを紐付けるオプション

ロールにユーザーリストを紐づける機能も欲しい

@syuilo
Copy link
Member

syuilo commented Jan 15, 2023

done

@syuilo syuilo closed this as completed Jan 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
✨Feature This adds/improves/enhances a feature 🔥high priority
Projects
None yet
Development

No branches or pull requests

4 participants