feat(drive): UI: add drive edition for admin

This commit is contained in:
Edouard Vanbelle
2026-06-24 01:20:44 +02:00
parent a5b24a7453
commit d77846119f
15 changed files with 1448 additions and 45 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ pub async fn create_grant(
let grant = if let Resource::Drive(drive_id) = resource {
match state
.drive_management_service
.set_member_role(caller_id, drive_id, subject, role, expires_at)
.set_member_role(caller_id, false, drive_id, subject, role, expires_at)
.await
{
Ok(g) => g,
@@ -322,7 +322,7 @@ pub async fn revoke_grant(
}
if let Err(e) = state
.drive_management_service
.remove_member(caller_id, drive_id, subject)
.remove_member(caller_id, false, drive_id, subject)
.await
{
return AppError::from(e).into_response();
@@ -609,7 +609,7 @@ pub async fn set_role(
let grant = if let Resource::Drive(drive_id) = resource {
match state
.drive_management_service
.set_member_role(caller_id, drive_id, subject, role, expires_at)
.set_member_role(caller_id, false, drive_id, subject, role, expires_at)
.await
{
Ok(g) => g,