Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
15a73122
Commit
15a73122
authored
10 years ago
by
Kegan Dougal
Browse files
Options
Downloads
Patches
Plain Diff
Added section on banning users, currently in flux as the API changes / is implemented.
parent
3122ff24
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/specification.rst
+26
-0
26 additions, 0 deletions
docs/specification.rst
with
26 additions
and
0 deletions
docs/specification.rst
+
26
−
0
View file @
15a73122
...
@@ -391,6 +391,32 @@ If all members in a room leave, that room becomes eligible for deletion.
...
@@ -391,6 +391,32 @@ If all members in a room leave, that room becomes eligible for deletion.
- TODO: Grace period before deletion?
- TODO: Grace period before deletion?
- TODO: Under what conditions should a room NOT be purged?
- TODO: Under what conditions should a room NOT be purged?
Banning users in a room
-----------------------
- TODO : Needs impl!
- TODO : How do we expose the ban list? A room state event? How do we handle
racing with updating the list? Scoped state_key to user?
E.g. /state/m.room.member.banlist/@user:domain { reason: foo }
- TODO: Any safeguards to prevent everyone banning everyone and locking out the
room? Or relying on decaying nature of power levels?
- Should the membership enum be "kick" instead and then use the banlist as "you've
actually been banned."?
A user may decide to ban another user in a room. 'Banning' forces the target user
to leave the room and prevents them from re-joining the room. In order to ban
someone, the user performing the ban MUST have the required power level. To ban
a user, a request should be made to ``/rooms/<room id>/ban`` with::
{
"user_id": "<user id to ban"
"reason": "string: <reason for the ban>"
}
Banning a user adjusts the banned member's membership state and adds their user ID to
a ban list. The ban list state event is stored at TODO and looks like TODO. Like with
other membership changes, a user can directly adjust the target member's state, but
unless their name is added to the ban list, they will be able to re-join the room.
Events in a room
Events in a room
----------------
----------------
Room events can be split into two categories:
Room events can be split into two categories:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment