Page MenuHomePhabricator

[identity] implement privileged delete users RPC
ClosedPublic

Authored by varun on Oct 7 2024, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 8:00 AM
Unknown Object (File)
Mon, Nov 11, 10:05 PM
Unknown Object (File)
Sat, Nov 9, 3:55 AM
Unknown Object (File)
Sat, Nov 9, 2:22 AM
Unknown Object (File)
Thu, Oct 31, 3:20 AM
Unknown Object (File)
Thu, Oct 31, 12:38 AM
Unknown Object (File)
Mon, Oct 28, 4:46 PM
Unknown Object (File)
Sun, Oct 27, 11:52 AM
Subscribers

Details

Summary

check if caller is staff. if they are, then delete the users whose IDs are provided in the request

Depends on D13629

Test Plan

tested in next diff by calling RPC

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Oct 7 2024, 8:20 PM
bartek added inline comments.
services/identity/src/grpc_services/authenticated.rs
630

In the future we might want to extract it or make readable from some JSON file or sth, but for now let's leave it as is 👍

This revision is now accepted and ready to land.Oct 8 2024, 12:54 AM