1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Changing Album/Image Owner

Changing Album/Image Owner

6 posts, 0 answered
  1. Tom
    Tom avatar
    37 posts
    Registered:
    26 Apr 2006
    26 May 2011
    Link to this post
    Is there a way to change the owner of an album or an image? (Sifefinity 4.1 SP1)

     I see under Administration/Permissions that there is a "Change Album Owner" permission, and a  "Change Image Owner" permission, but I don't see a way to actually change either. How is this done?

    Thanks,

    Tom
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    31 May 2011
    Link to this post
    Hello Tom,

    You can chnage the Author/Owner property very easily through code - you just need to pass the title of the album you want to change and the user name. Please take a look at the below sample code:
    var manager = UserManager.GetManager();
                var newOwner = manager.GetUser("MyUser").Id;
                var myAlbum = App.WorkWith().Albums().Where(aB => aB.Title == "AlbumTitle").Get().SingleOrDefault();
                myAlbum.Owner = newOwner;


    Regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Tom
    Tom avatar
    37 posts
    Registered:
    26 Apr 2006
    31 May 2011
    Link to this post

    We already figured this out, and tried it. However, changing the owner still does not allow users to upload images because the modify album and manage images permissions is not implemented in a granular fashion. This applies to not only image libraries, but all libraries including document libraries, video libraries and albums.

    I appears that all of the permissions are in place for implementing this type of granularity, however, the code to allow it has not been implemented.

    We will be following up with more information via a support ticket.

    Thanks,

    Tom
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    01 Jun 2011
    Link to this post
    Hello Tom,

    Yes, that's the way permissions for content items are applied currently. However we are working on the task logged in this PITS issue, of which we informed you in this forum thread. We'll try to provide a solution for the problem in one of the upcoming releases.

    Regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Tom
    Tom avatar
    37 posts
    Registered:
    26 Apr 2006
    01 Jun 2011
    Link to this post
    Actually,the forum thread you referred to and the PITS issue was related to page permissions, and I was provided a fix that addressed that issue via a support ticket. The fix was later shared in this forum thread but, this has nothing to do with granular pemissions for libraries which is an equally important issue.

    Tom
  6. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    02 Jun 2011
    Link to this post
    Hi Tom,

    Yes, indeed the thread concerned pages permissions, and I want to thank you for the active involvement on your side in helping the community and sharing your solution in the forums. I referred you tot he PITS issue, as the problem is related, and I have included it in the internal bug description. Can you, please, clarify what you mean by "It appears that all of the permissions are in place for implementing this type of granularity, however, the code to allow it has not been implemented."  We've had questions from people asking about the "break inheritance" button for content items like images, when trying to set granular permissions, but this was more of a license restriction. Are you using your Enterprise license for the project we're currently discussing or another type of license?

    Kind regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered