Example #1
0
        public bool IsOwner(string psOwner)
        {
            if (String.IsNullOrEmpty(psOwner))
            {
                throw new WonkaBrePermissionsException("ERROR!  Provided owner cannot be null or blank.");
            }

            return(OwnerWeights.ContainsKey(psOwner));
        }
Example #2
0
 public uint GetOwnerWeight(string psOwner)
 {
     if (!String.IsNullOrEmpty(psOwner))
     {
         if (OwnerWeights.ContainsKey(psOwner))
         {
             return(OwnerWeights[psOwner]);
         }
         else
         {
             return(0);
         }
     }
     else
     {
         return(0);
     }
 }