Page MenuHomePhabricator

[keyserver] Add ignorePermissions option to deleteThread
ClosedPublic

Authored by ashoat on Sep 19 2023, 1:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 18, 3:28 AM
Unknown Object (File)
Tue, Oct 1, 6:00 PM
Unknown Object (File)
Tue, Oct 1, 6:00 PM
Unknown Object (File)
Tue, Oct 1, 6:00 PM
Unknown Object (File)
Tue, Oct 1, 5:58 PM
Unknown Object (File)
Sep 18 2024, 6:36 PM
Unknown Object (File)
Sep 18 2024, 6:21 PM
Unknown Object (File)
Sep 16 2024, 12:10 PM
Subscribers

Details

Summary

This is needed in the following diff so that we can call deleteThread from a migrations context, where we use a viewer that otherwise doesn't have permissions to delete any thread (createScriptViewer(bots.commbot.userID)).

I modeled it after the equivalent permission in updateThread.

Test Plan

Before this diff, the following diff errored with an invalid_credentials error. After this diff, it no longer does.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat published this revision for review.Sep 19 2023, 1:31 PM
This revision is now accepted and ready to land.Sep 19 2023, 1:35 PM