コード例 #1
0
ファイル: GrantAccess.ascx.cs プロジェクト: Plankankul/Zenity
 public void ShowRights(string userOrGroupId, string resourceId)
 {
     this.ResourceId    = resourceId;
     this.UserOrGroupId = userOrGroupId;
     using (ResourceDataAccess resDataAccess = new ResourceDataAccess())
     {
         grdVwPermission.DataSource = resDataAccess.GetUsersOrGroupPremissions(
             this.ResourceId,
             this.UserOrGroupId,
             userToken);
         grdVwPermission.DataBind();
     }
     if (grdVwPermission.Rows.Count > 0)
     {
         this.Visible = true;
     }
 }