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

        PermissionSet1.Enabled    = perm.CheckDemand();
        PermissionSet1.DataSource = new object[] { GlobalPermissions.Instance };
        PermissionSet1.DataBind();
    }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
    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;
        }
    }