Page MenuHomePhabricator

[lib] Remove `skipMemberAdminRoleCheck` option from `threadIsWithBlockedUserOnly`
ClosedPublic

Authored by atul on Jun 3 2024, 2:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 6:15 AM
Unknown Object (File)
Mon, Nov 11, 1:09 AM
Unknown Object (File)
Sun, Nov 10, 11:00 PM
Unknown Object (File)
Sun, Nov 10, 4:57 PM
Unknown Object (File)
Fri, Nov 8, 1:52 PM
Unknown Object (File)
Fri, Nov 8, 7:15 AM
Unknown Object (File)
Oct 17 2024, 5:46 PM
Unknown Object (File)
Oct 13 2024, 3:31 PM
Subscribers
None

Details

Summary

Instead of having a boolean flag, we have a separate threadIsWithBlockedUserOnlyWithoutAdminRoleCheck function which skips the admin role check.

threadIsWithBlockedUserOnly takes LegacyRawThreadInfo | RawThreadInfo and goes through "traditional" admin role check
threadIsWithBlockedUserOnlyWithoutAdminRoleCheck takes only ThreadInfo and handles admin role check "before" via hook


Depends on D12293

Test Plan

flow + close reading

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D12294_1 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage