From 2fc45a97a9ed13e26dbcd42d44ecb3c7b8f615b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 30 Oct 2020 12:36:43 +0100 Subject: [PATCH] privs: remove PRIV_REMOVE_PRUNE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it's not used anywhere, and not needed either until the day we might implement push syncs. Signed-off-by: Fabian Grünbichler --- src/config/acl.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/config/acl.rs b/src/config/acl.rs index 7345adea..17eb47dc 100644 --- a/src/config/acl.rs +++ b/src/config/acl.rs @@ -42,7 +42,6 @@ constnamedbitmap! { PRIV_REMOTE_AUDIT("Remote.Audit"); PRIV_REMOTE_MODIFY("Remote.Modify"); PRIV_REMOTE_READ("Remote.Read"); - PRIV_REMOTE_PRUNE("Remote.Prune"); PRIV_SYS_CONSOLE("Sys.Console"); } @@ -96,14 +95,12 @@ PRIV_REMOTE_AUDIT; pub const ROLE_REMOTE_ADMIN: u64 = PRIV_REMOTE_AUDIT | PRIV_REMOTE_MODIFY | -PRIV_REMOTE_READ | -PRIV_REMOTE_PRUNE; +PRIV_REMOTE_READ; /// Remote.SyncOperator can do read and prune on the remote. pub const ROLE_REMOTE_SYNC_OPERATOR: u64 = PRIV_REMOTE_AUDIT | -PRIV_REMOTE_READ | -PRIV_REMOTE_PRUNE; +PRIV_REMOTE_READ; pub const ROLE_NAME_NO_ACCESS: &str ="NoAccess";