feat: allow mods to delete files #138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mod-rm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #126
@ -348,6 +348,94 @@ pub fn ban_ip_list(}}/// Remove a file from the serverThis is largely the same as the regular
rmcommand. Consider combining their main logic somewhere.@ -62,0 +75,4 @@)};Ok((auth_meta, user_meta_maybe))This seems inherently confusing and prone to causing issues. Is there a simpler way to do this?
The solution was more confusing. Leaving be for now, added a clarifying docstring.
@ -18,3 +19,3 @@.map_err(|_| ResponseError::NotFound)?;let subpath = context.req.param::<String>("subpath").unwrap();let meta = slip_auth::authorize_key_or_mod(let (auth_meta, user_meta_maybe) = slip_auth::authorize_key_or_mod(like I said above, I kind of hate this.