London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
var writableSecurityDescriptor = (mediaData as IContentSecurable).GetContentSecurityDescriptor().CreateWritableClone() as IContentSecurityDescriptor;
//Do your modifications here
ServiceLocator.Current.GetInstance
Minor correction to Johans post; the last line should read:
ServiceLocator.Current.GetInstance<IContentSecurityRepository>().Save(contentLink, writableSecurityDescriptor, SecuritySaveType.Replace);
.. where <IContentSecurityRepository> is the Service we are using.
Cheers ;)
How can I change the acl for MediaData? When changing the acl for PageData I use page.ACL.CreateWritebleClone(), but MediaData doesn't expose an ACL-property. I've tried to create a ContentAccessControlList from the contentLink but an exception is thrown when I try to save it. How can this be done?