Description

This change is for performance tuning, no need to test.

For example, GroupPermissionUtil.contains(PermissionChecker, long, String) needs to find the group with groupId first and finally call GroupPermissionUtil.contains(PermissionChecker, Group, String). We should use the simpler one as possible as we can.

Attachments

Issue Links

relates

LPE-15425Use the model instance instead of the ID when performing permission checks