Open
Conversation
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add role policy to control channel creation permissions
Add Jan 22, 2026
canCreateChannel role policy
Member
|
@copilot canCreateChannelポリシーの設定を行うフロントエンド側の実装が抜けているようです |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #17121 +/- ##
===========================================
+ Coverage 63.65% 63.68% +0.02%
===========================================
Files 1161 1164 +3
Lines 116313 116749 +436
Branches 8407 8499 +92
===========================================
+ Hits 74042 74354 +312
- Misses 40063 40209 +146
+ Partials 2208 2186 -22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Contributor
Author
Added frontend UI configuration in commit cd767b2. The canCreateChannel policy can now be configured in:
Both include the standard policy controls (enable/disable toggle, priority settings, and "Use Base Value" option). |
Contributor
|
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -92888,6 +92888,9 @@
"canHideAds": {
"type": "boolean"
},
+ "canCreateChannel": {
+ "type": "boolean"
+ },
"driveCapacityMb": {
"type": "integer"
},
@@ -92984,6 +92987,7 @@
"canSearchUsers",
"canUseTranslator",
"canHideAds",
+ "canCreateChannel",
"driveCapacityMb",
"maxFileSizeMb",
"uploadableFileTypes", |
Contributor
Backend memory usage comparisonBefore GC
After GC
After Request
|
canCreateChannel role policycanCreateChannel role policy
Contributor
|
なおした(Changelogだけまだ) |
Contributor
|
コンフリクト解消 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
canCreateChannelrole policy to control channel creation permissions via roles.Changes:
canCreateChannelboolean policy toRolePoliciestype and defaultsrequiredRolePolicyon/channels/createendpointDefault:
true(backward compatible - existing users retain channel creation access)Why
Enables moderators to restrict channel creation as a moderation tool, as requested in the issue.
Additional info (optional)
Policy follows existing
can*permission patterns (OR aggregation - any role withtruegrants access). ReturnsROLE_PERMISSION_DENIEDwhen denied.Frontend UI includes:
Checklist
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.