Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

チャンネル内モデレーター・チャンネル内ロール #682

Open
u1-liquid opened this issue Aug 9, 2024 · 0 comments
Open

Comments

@u1-liquid
Copy link
Member

  • チャンネル主がチャンネル内モデレーターを任命できるようにする
  • チャンネル内モデレーターはチャンネル内のノートを削除できる
  • チャンネル内モデレーターはチャンネル内でのみ適用されるロールをユーザーにアサインできる
    • サーバー管理者がチャンネル内で使用できると設定したロールのみ利用可能

具体的な実装について

  • RoleAssignmentにチャンネルid(nullable)コラムを作る
  • RoleServiceのroleの列挙時にチャンネルidを渡せるようにする
    • if (channelId) query.andWhere(braket => braket.where(roleAssignement.channelId IS NULL).orWhere(roleAssignement.channelId = :channelId)みたいにする
  • チャンネル主とチャンネル内モデレーターに提供するroleのapiを新設する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant