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 1461 posts 1883 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 1461 posts 1883 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?

     

     

Please Sign in or register to post replies

Write your reply to:

Draft