Permission guard simplification
This commit is contained in:
@ -13,7 +13,6 @@ pub async fn create(
|
||||
) -> GeneralResult<Json<Uuid>> {
|
||||
db::folder::get_permissions(params.parent_folder_id, claims.user_id, &pool)
|
||||
.await
|
||||
.map_err(GeneralError::permissions)?
|
||||
.can_write_guard()?;
|
||||
|
||||
let exists = db::folder::name_exists(params.parent_folder_id, ¶ms.folder_name, &pool)
|
||||
|
Reference in New Issue
Block a user