@@ -58,12 +58,6 @@ public function unDelegate(int $accountId, string $userId): void {
5858 }
5959
6060 /**
61- * Resolve the effective user ID for accessing an account.
62- *
63- * If the current user owns the account, returns the current user ID.
64- * If the current user is a delegate, returns the account owner's user ID.
65- * Throws DoesNotExistException if the user has no access.
66- *
6761 * @throws DoesNotExistException
6862 */
6963 public function resolveAccountUserId (int $ accountId , string $ currentUserId ): string {
@@ -75,16 +69,10 @@ public function resolveAccountUserId(int $accountId, string $currentUserId): str
7569 // Not the owner — check delegation
7670 }
7771
78- // Check if the current user is a delegate
7972 return $ this ->delegationMapper ->findAccountOwnerForDelegatedUser ($ accountId , $ currentUserId );
8073 }
8174
8275 /**
83- * Resolve the effective user ID for accessing a mailbox.
84- *
85- * Looks up the account ID for the given mailbox, then delegates to
86- * resolveAccountUserId to check ownership or delegation.
87- *
8876 * @throws DoesNotExistException
8977 */
9078 public function resolveMailboxUserId (int $ mailboxId , string $ currentUserId ): string {
@@ -93,11 +81,6 @@ public function resolveMailboxUserId(int $mailboxId, string $currentUserId): str
9381 }
9482
9583 /**
96- * Resolve the effective user ID for accessing a message.
97- *
98- * Looks up the account ID for the given message (via its mailbox), then
99- * delegates to resolveAccountUserId to check ownership or delegation.
100- *
10184 * @throws DoesNotExistException
10285 */
10386 public function resolveMessageUserId (int $ messageId , string $ currentUserId ): string {
@@ -106,11 +89,6 @@ public function resolveMessageUserId(int $messageId, string $currentUserId): str
10689 }
10790
10891 /**
109- * Resolve the effective user ID for accessing an alias.
110- *
111- * Looks up the account ID for the given alias, then delegates to
112- * resolveAccountUserId to check ownership or delegation.
113- *
11492 * @throws DoesNotExistException
11593 */
11694 public function resolveAliasUserId (int $ aliasId , string $ currentUserId ): string {
@@ -119,11 +97,6 @@ public function resolveAliasUserId(int $aliasId, string $currentUserId): string
11997 }
12098
12199 /**
122- * Resolve the effective user ID for accessing a local message (draft/outbox).
123- *
124- * Looks up the account ID for the given local message, then delegates to
125- * resolveAccountUserId to check ownership or delegation.
126- *
127100 * @throws DoesNotExistException
128101 */
129102 public function resolveLocalMessageUserId (int $ localMessageId , string $ currentUserId ): string {
0 commit comments