Problem assigning roles to album

Posted by Community Admin on 04-Aug-2018 06:05

Problem assigning roles to album

All Replies

Posted by Community Admin on 09-Dec-2016 00:00

Hi,

I tried to set permission to an album inside a library but it is not working. Just a simple code below breaking the inheritance is also not working. Does anyone know what is wrong?

public void SetPermissionForImageLibrary(Guid albumId)
       
           var album = App.WorkWith().Album(albumId).Get();
 
           LibrariesManager manager = LibrariesManager.GetManager();
           manager.BreakPermiossionsInheritance(album);
 
           manager.SaveChanges();
       

This thread is closed