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)
Sat, Dec 21, 4:30 PM
Unknown Object (File)
Sat, Dec 21, 4:30 PM
Unknown Object (File)
Sat, Dec 21, 4:30 PM
Unknown Object (File)
Sat, Dec 21, 4:30 PM
Unknown Object (File)
Sat, Dec 21, 4:30 PM
Unknown Object (File)
Wed, Nov 27, 5:14 AM
Unknown Object (File)
Nov 23 2024, 12:04 PM
Unknown Object (File)
Nov 23 2024, 11:28 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable