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 committed 2016-02-16 14:55:21 +01:00
1 parent bcf94c5b43
commit dcb1d2f574
3 files changed
+13 -4

No files matched your search

+1 -1
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 */