Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1347 posts 1608 karma points
    Mar 31, 2015 @ 10:08
    Gordon Saxby
    0

    How do I access UserType

    I want to retrieve the default permissions assigned to a userType ... how do I / can I do that?

  • Gordon Saxby 1347 posts 1608 karma points
    Mar 31, 2015 @ 12:14
    Gordon Saxby
    0

    I have found that you can get the default permissions (as defined on UserType?) for a user :

                var user = _userService.GetUserById(UserId);
                var defaultPerms = user.DefaultPermissions;
    
    This assumes I have a user that is assigned to that user type. In this particular situation, I do, but what if I didn't?

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies