Exemplo n.º 1
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName, Level
 /// </summary>
 public static IDataReader GetListGroupsAsTree()
 {
     if (!Security.IsUserInGroup(InternalSecureGroups.Partner))
     {
         return(DBGroup.GetListGroupsAsTree());
     }
     else
     {
         int PartnerGroupId = DBGroup.GetGroupForPartnerUser(Security.CurrentUser.UserID);
         return(DBGroup.GetListGroupsByPartner(PartnerGroupId, true, false));
     }
 }