fix Actions List
This commit is contained in:
parent
7578d56c9a
commit
ec13a31c5c
2 changed files with 9 additions and 8 deletions
|
@ -91,12 +91,6 @@ namespace WebsitePanel.Portal.UserControls
|
||||||
set { EnsureChildControls(); QuotasPanel.Visible = value; }
|
set { EnsureChildControls(); QuotasPanel.Visible = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ShowActions
|
|
||||||
{
|
|
||||||
get { EnsureChildControls(); return QuotasPanel.Visible; }
|
|
||||||
set { EnsureChildControls(); websiteActions.Visible = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//HideServiceColumns(gvWebSites);
|
//HideServiceColumns(gvWebSites);
|
||||||
|
@ -119,6 +113,14 @@ namespace WebsitePanel.Portal.UserControls
|
||||||
(PanelSecurity.SelectedUser.Role != UserRole.User) && chkRecursive.Checked;
|
(PanelSecurity.SelectedUser.Role != UserRole.User) && chkRecursive.Checked;
|
||||||
gvItems.Columns[5].Visible = (PanelSecurity.SelectedUser.Role == UserRole.Administrator);
|
gvItems.Columns[5].Visible = (PanelSecurity.SelectedUser.Role == UserRole.Administrator);
|
||||||
gvItems.Columns[6].Visible = (PanelSecurity.EffectiveUser.Role == UserRole.Administrator);
|
gvItems.Columns[6].Visible = (PanelSecurity.EffectiveUser.Role == UserRole.Administrator);
|
||||||
|
if (QuotaName == "Web.Sites")
|
||||||
|
{
|
||||||
|
websiteActions.Visible = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
websiteActions.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,5 +9,4 @@
|
||||||
CreateControlID="add_site"
|
CreateControlID="add_site"
|
||||||
GroupName="Web"
|
GroupName="Web"
|
||||||
TypeName="WebsitePanel.Providers.Web.WebSite, WebsitePanel.Providers.Base"
|
TypeName="WebsitePanel.Providers.Web.WebSite, WebsitePanel.Providers.Base"
|
||||||
QuotaName="Web.Sites"
|
QuotaName="Web.Sites" />
|
||||||
ShowActions = "True" />
|
|
Loading…
Add table
Add a link
Reference in a new issue