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; }
|
||||
}
|
||||
|
||||
public bool ShowActions
|
||||
{
|
||||
get { EnsureChildControls(); return QuotasPanel.Visible; }
|
||||
set { EnsureChildControls(); websiteActions.Visible = value; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
//HideServiceColumns(gvWebSites);
|
||||
|
@ -119,6 +113,14 @@ namespace WebsitePanel.Portal.UserControls
|
|||
(PanelSecurity.SelectedUser.Role != UserRole.User) && chkRecursive.Checked;
|
||||
gvItems.Columns[5].Visible = (PanelSecurity.SelectedUser.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)
|
||||
{
|
||||
|
|
|
@ -9,5 +9,4 @@
|
|||
CreateControlID="add_site"
|
||||
GroupName="Web"
|
||||
TypeName="WebsitePanel.Providers.Web.WebSite, WebsitePanel.Providers.Base"
|
||||
QuotaName="Web.Sites"
|
||||
ShowActions = "True" />
|
||||
QuotaName="Web.Sites" />
|
Loading…
Add table
Add a link
Reference in a new issue