November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Any special permissions are required to delete media? I still get that exception when I try to move an image to the waste basket...
Moving media to the waste basket is a bit different.
_contentRepository.Delete(content.ContentLink, false, AccessLevel.NoAccess);
The same code can be used for all content types.
It seems to be working but I'm still testing. One question though. Do I still need to set a principal if I skip moving to the waste basket?
I have created an account and assigned full access to it for the whole tree. When I try to use that account programmatically in a scheduled job by calling
I get an exception
while I try to call _contentRepository.MoveToWastebasket(content.ContentLink). But when I manually log in the edit mode with the same account, I have no problems with moving content to waste basket.
How should I use the account in order to be able to move content to the waste basket programmatically?