AI OnAI Off
Hi Praful.
I suspect you need to use "SecuritySaveType.Replace" rather than "None" or "MergeChildPermissions" so the line where you save the permissions would become:
_securityRepository.Save(mediaReference, mediaSecurityDescriptor, SecuritySaveType.Replace);
Hey, I am trying to update the permission for media uploaded, via code. During debugging I can see it's showing me the updated values. But I guess I am doing something wrong while saving the persmission. Please see below code and let me know what wrong here or how I can fix it.
See the below screenshot, in which it's clearly visible the the values are updating. I add the Everyone role which on added as permission in CMS.
This is after updates
Please advice why it's not updating.