public static function viewByOwner(User $user, $ownerUserId) { return $user->hasPermission('view_all') || $user->id == $ownerUserId; }