From 49797c86d9384afd891aaa3131c88f43baf923d8 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 9 Jan 2025 09:27:34 +1300 Subject: [PATCH] API Deprecate API which will be removed in CMS 6 (#625) --- src/Model/Subsite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Subsite.php b/src/Model/Subsite.php index d2cd87ef..a5454286 100644 --- a/src/Model/Subsite.php +++ b/src/Model/Subsite.php @@ -312,7 +312,7 @@ public static function getSubsiteIDForDomain($host = null, $checkPermissions = t * @param class-string $className * @param string $filter * @param string $sort - * @param string $join + * @param string $join Deprecated, use leftJoin($table, $joinClause) instead * @param string $limit * @return DataList */ @@ -930,9 +930,11 @@ public function activate() /** * @param array $permissionCodes * @return DataList + * @deprecated 3.4.0 Will be removed without equivalent functionality */ public function getMembersByPermission($permissionCodes = ['ADMIN']) { + Deprecation::noticeWithNoReplacment('3.4.0'); if (!is_array($permissionCodes)) { user_error('Permissions must be passed to Subsite::getMembersByPermission as an array', E_USER_ERROR); }