Esempio n. 1
0
 public bool CheckRights(SystemRights netRights)
 {
     if (netRights == SystemRights.root || netRights == SystemRights.Admin || netRights == Rights)
     {
         return(true);
     }
     FDebug.Log("没有访问权限");
     return(false);
 }
Esempio n. 2
0
 void ProcessContestRight(ContestRights contestAllow, ContestRights contestDeny, SystemRights systemAllow, SystemRights baseRights,
                          ContestRights concreteRights, ref ContestRights cr)
 {
     if ((baseRights & systemAllow) != 0)
     {
         if ((concreteRights & contestDeny) != 0)
         {
             cr |= contestDeny;
         }
         else
         {
             cr |= contestAllow;
         }
     }
     else
     {
         if ((concreteRights & contestAllow) != 0)
         {
             cr |= contestAllow;
         }
         else
         {
             cr |= contestDeny;
         }
     }
 }
Esempio n. 3
0
 public Rightslimt(SystemRights rights)
 {
     _rights = rights;
 }