The below should work for filtering that list to specific users.
Global
Triggers: onBeforePendingApprovalUsersFormDisplay
Type: Code
User: Self
Access: Everybody
Action
Method: PHP
Code:
Code:
foreach ( $variables['var1] as $i => $pendingUser ) {
$denied = cbCheckIfUserCanPerformUserTask( $pendingUser->getInt( 'id', 0 ), 'allowModeratorsUserEdit' );
if ( $denied === null ) {
$denied = checkCBpermissions( [ $pendingUser->getInt( 'id', 0 ) ] ), 'edit', true );
}
if ( $denied ) {
unset( $variables['var1][$i] );
}
}
Parameters
Reference Variables: Variable 1
It should apply the same permissions checking as profile edit to handle who to filter out. Note the above was not tested and is just an example, but should work.