oc: API to know if a message can be deleted by a subscriber

Instead of asking general container. This gives the possibility to
perform the deletion depending on the data from the message, for instance,
the user creator.
This commit is contained in:
Enrique J. Hernández Blasco
2016-01-28 15:47:17 +01:00
parent bcf94c5b43
commit dcb1d2f574
3 changed files with 13 additions and 4 deletions

View File

@@ -597,7 +597,7 @@ Class NSExceptionK, MAPIStoreFAIMessageK, MAPIStoreMessageTableK, MAPIStoreFAIMe
if ([[context activeUser] isEqual: ownerUser]
|| (![message isKindOfClass: MAPIStoreFAIMessageK]
&& [self subscriberCanDeleteMessages]))
&& ([self subscriberCanDeleteMessages] || [message subscriberCanDeleteMessage])))
{
/* we ensure the table caches are loaded so that old and new state
can be compared */