Пример #1
0
 public override bool Equals(object obj)
 {
     if (obj is TreeRole)
     {
         TreeRole oTree = obj as TreeRole;
         return(this.ID.Equals(oTree.ID));
     }
     return(base.Equals(obj));
 }
Пример #2
0
 public void InitPermission(bool NeedInit)
 {
     ClearDroit();
     if (NeedInit)
     {
         RolePool.InitTreamRolePool();
         RolePool.InitTreeRolePool();
     }
     _securityTree = RolePool.GetTreeRolesByUser(this.UserID);
     _roleList = RolePool.GetTeamRolesByUser(this.UserID);
     //calculate all droits
     ColligateDroits();
     TokenLoadTime = DateTime.Now;
 }
Пример #3
0
 private void Recurse(TreeRole tree)
 {
     this.AddDroit(tree.ColligateDroits());
 }
Пример #4
0
 private void Recurse(TreeRole tree)
 {
     this.AddDroit(tree.ColligateDroits());
 }