Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kajal_sawant 10 posts 113 karma points
    Dec 04, 2018 @ 08:41
    kajal_sawant
    0

    UserService.SavedUserGroup Not Saving data on 1st time.

    Hello all,

    I am facing issues while saving UserService.SavedUserGroup delegate, when i fired save event in Users Group and change its permissions,it's not reflecting changes on 1st time and its save the changes on 2 time.

    Thank you.

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Dec 04, 2018 @ 11:37
    Alex Skrypnyk
    0

    Hi Kajal

    Welcome to our forum!

    Can you show the code how do you do that?

    Alex

  • kajal_sawant 10 posts 113 karma points
    Dec 04, 2018 @ 11:56
    kajal_sawant
    0

    Hello Alex,

    Thanks for approve

    UserService.SavedUserGroup += GroupServiceSaved;
    
    public void GroupServiceSaved(IUserService sender,Umbraco.Core.Events.SaveEventArgs<IUserGroup> args)
             {
                IEnumerable<IContent> contents;
                contents = objCommonRepository.GetContentType("home");
    }
        }
    

    This is code sample i implemented. When i hit Save its come on this event and execute every single line but not save changes. 2nd time its working as expected.

Please Sign in or register to post replies

Write your reply to:

Draft