Merge pull request #35 from heikkari/34

This commit is contained in:
Paul Makles
2021-08-15 23:45:12 +01:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ use rocket::serde::json::Value;
#[get("/<target>")]
pub async fn req(user: User, target: Ref) -> Result<Value> {
let target = target.fetch_user().await?;
let mut target = target.fetch_user().await?;
let perm = permissions::PermissionCalculator::new(&user)
.with_user(&target)