コード例 #1
0
ファイル: RafyIdentity.cs プロジェクト: zhuwansu/Rafy
 internal void LoadChildrenProperties()
 {
     if (this.User != null)
     {
         this.Id              = this.User.Id;
         this.Code            = this.User.Code;
         this.Name            = this.User.Name;
         this.IsAuthenticated = true;
         this._roles          = (RF.Find <OrgPosition>() as OrgPositionRepository).GetList(User.Id); // list of roles from security store
     }
     else
     {
         this.Id = 0;
         this.IsAuthenticated = false;
         this._roles          = null;
     }
 }
コード例 #2
0
ファイル: RafyIdentity.cs プロジェクト: 569550384/Rafy
 internal void LoadChildrenProperties()
 {
     if (this.User != null)
     {
         this.Id = this.User.Id;
         this.Code = this.User.Code;
         this.Name = this.User.Name;
         this.IsAuthenticated = true;
         this._roles = (RF.Find<OrgPosition>() as OrgPositionRepository).GetList(User.Id); // list of roles from security store
     }
     else
     {
         this.Id = 0;
         this.IsAuthenticated = false;
         this._roles = null;
     }
 }