private void BindPermissions()
 {
     GlobalPermission perm = new GlobalPermission(GlobalRights.ManagePermissions);
     PermissionSet1.Enabled = perm.CheckDemand();
     PermissionSet1.DataSource = new object[] { GlobalPermissions.Instance };
     PermissionSet1.DataBind();
 }
Beispiel #2
0
    private void BindPermissions()
    {
        GlobalPermission perm = new GlobalPermission(GlobalRights.ManagePermissions);

        PermissionSet1.Enabled    = perm.CheckDemand();
        PermissionSet1.DataSource = new object[] { GlobalPermissions.Instance };
        PermissionSet1.DataBind();
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     GlobalPermission perm = new GlobalPermission(GlobalRights.ManageFiles);
     if (!perm.CheckDemand())
     {
         this.tabStripItems.Tabs[2].Visible = false;
         this.pageViewFiles.Visible = false;
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        GlobalPermission perm = new GlobalPermission(GlobalRights.ManageFiles);

        if (!perm.CheckDemand())
        {
            this.tabStripItems.Tabs[1].Visible = false;
            this.pageViewFiles.Visible         = false;
        }
    }