forked from jmug/stoatchat
Channels: Add role / default permission set routes.
Server: Add role create / delete route.
This commit is contained in:
@@ -12,7 +12,7 @@ pub async fn req(user: User, target: Ref, member: String) -> Result<()> {
|
||||
.for_server()
|
||||
.await?;
|
||||
|
||||
if !perm.get_manage_members() {
|
||||
if !perm.get_kick_members() {
|
||||
return Err(Error::MissingPermission);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user