diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-04 20:41:59 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-04 20:41:59 +0200 |
commit | 347274afb36e926b328e799ca8004fc874ffe4cb (patch) | |
tree | 8c7ec38938e3673ce5752bffa9442daa9f589f3d /common/src/user.rs | |
parent | 4095a8804c17c3ec12706f00d3694f564afc0b95 (diff) | |
download | jellything-347274afb36e926b328e799ca8004fc874ffe4cb.tar jellything-347274afb36e926b328e799ca8004fc874ffe4cb.tar.bz2 jellything-347274afb36e926b328e799ca8004fc874ffe4cb.tar.zst |
more permission stuff
Diffstat (limited to 'common/src/user.rs')
-rw-r--r-- | common/src/user.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/user.rs b/common/src/user.rs index 8640dc2..b049346 100644 --- a/common/src/user.rs +++ b/common/src/user.rs @@ -20,6 +20,7 @@ pub enum UserPermission { OriginalStream, Transcode, ManageUsers, + FederatedContent, GenerateInvite, AccessNode(String), } @@ -38,6 +39,7 @@ impl UserPermission { impl Display for UserPermission { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_str(&match self { + UserPermission::FederatedContent => format!("access to federated content"), UserPermission::Admin => format!("administrative rights"), UserPermission::OriginalStream => format!("download of the original media"), UserPermission::Transcode => format!("transcoding"), |