Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Using roles with object access does not work

Last post Fri, Aug 08 2008, 12:52 PM by kgwood39. 0 replies.
Sort Posts: Previous Next
  •  Fri, Aug 08 2008, 12:52 PM 10045

    Using roles with object access does not work

    In CommerceManager\Module\AdminObjectPermissionsEdit.ascx.cs the Add_Click function builds ACEs in two sections of code:
    If no customer is selected you run:
    if(lbCustomers.SelectedItem==null)//int.Parse(ddUsers.SelectedItem.Value)==0)    //group
                {
                    if(rbList.Items[0].Selected) //allow
                        switch(ddRights.SelectedItem.Value)
                        {
                            case "1" :
                                ACEr = new ACE(int.Parse(ddRoles.SelectedItem.Value),AllowLevels.Read);
                                ACLr.Add(ACEr);
                                break;

    If a customer is selected you run:
    if(li.Selected)
                        {
                            if(rbList.Items[0].Selected) //allow
                                switch(ddRights.SelectedItem.Value)
                                {
                                    case "1" :
                                        ACEr = new ACE(int.Parse(li.Value), AllowLevels.Read);

    Nowhere is ACEr.PrincipleType being set to ACEPrincipleType.Role or ACEPrincipleType.Customer.   And the ACE class would have to do something with that setting for any of this to work.  It loo
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems