fix(spaces): use RoleDefinition from core instead of local duplicate
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
053bdf00da
commit
aae610b3d2
1 changed files with 1 additions and 11 deletions
|
|
@ -6,22 +6,12 @@ use std::{
|
|||
|
||||
use async_trait::async_trait;
|
||||
use conduwuit::Result;
|
||||
use conduwuit_core::matrix::space_roles::RoleDefinition;
|
||||
use ruma::{OwnedRoomId, OwnedUserId};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
use crate::{Dep, rooms};
|
||||
|
||||
/// Definition of a role within a space, including its permissions.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct RoleDefinition {
|
||||
/// Human-readable name of the role.
|
||||
pub name: String,
|
||||
/// Set of permission strings granted by this role.
|
||||
pub permissions: HashSet<String>,
|
||||
/// Priority for ordering/conflict resolution (higher = more priority).
|
||||
pub priority: i64,
|
||||
}
|
||||
|
||||
pub struct Service {
|
||||
#[allow(dead_code)]
|
||||
services: Services,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue