More in this section
Forums / Security / Disabling SiteFinities Role Management

Disabling SiteFinities Role Management

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Simon
    Simon avatar
    2 posts
    05 Mar 2008
    07 Aug 2009
    Link to this post
    I've implemented my own role manager, which works fine. One of our requirments is that roles are time limited (ie someone is in a role for a month unless they pay us.

    Our code takes care of all this and works fine with sitefinity. BUT when you come to edit the roles in the admin section, sitefinity does not know about out expirations. So I added a usercontrol into the Users.aspx page that replicated the RolesList but allows dates to be attached to each role.

    So far so good. However when the users.aspx page save its data "Save Changes" we persist out roles, then the sitefinity RoleList perists its (which put it back into its orginal state...). I've tried removing the RoleList element, but the UserManager throws as it can't find it. Our only work around at the moment is to set all the checks in the RoleList to match our control's, but this seems hacky and prone to breaking if we upgrade to version 3.x or 4.

    Any thoughts?
  2. Vlad
    Vlad avatar
    498 posts
    19 Jun 2017
    13 Aug 2009
    Link to this post
    Hello Simon,

    I am not sure if I completely understand your scenario.
    However, I think it would be better if you implement your logic in the RoleProvider, instead of trying to change the user interface.
    You could inherit the current RoleProvider (Telerik.DataAccess.AspnetProviders.TelerikProfileProvider) and override the appropriate methods (GetRoles, GetRolesForUser, etc.).

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered