More granularity to the available roles:

Available roles now in the platform: Administrator, Reseller, User, PlatformCSR,
PlatformHelpdesk, ResellerCSR, ResellerHelpdesk.

The platform CSR and Helpdesk are peer accounts on platform root level.

The names can be used within the  websitepanel_pages.config on Page and Module
level. On module level the roles can be specified on the viewRoles attribute and
readOnlyRoles attribute. When specifying the later all controls will be disabled
within the Modile, the viewRoles just show the page or not. When nothing
specified the page is just shown
This commit is contained in:
robvde 2012-07-11 18:18:13 +04:00
parent da0966657b
commit 37af5eceac
21 changed files with 423 additions and 127 deletions

View file

@ -44,6 +44,7 @@ namespace WebsitePanel.WebPortal
private string adminContainerSrc;
private List<string> viewRoles = new List<string>();
private List<string> editRoles = new List<string>();
private List<string> readOnlyRoles = new List<string>();
private Hashtable settings = new Hashtable();
private XmlDocument xmlModuleData = new XmlDocument();
private PortalPage page;
@ -82,6 +83,12 @@ namespace WebsitePanel.WebPortal
get { return this.editRoles; }
}
public List<string> ReadOnlyRoles
{
get { return this.readOnlyRoles; }
}
public Hashtable Settings
{
get { return this.settings; }