Beispiel #1
0
        //---------------------------------------------------------------------

        public static bool CanList(PermissionItem v)
        {
            return(Bitset8.GetBit(v.Permission, 0));
        }
Beispiel #2
0
 public static bool CanRead(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 1));
 }
Beispiel #3
0
 public static bool CanDelete(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 3));
 }
Beispiel #4
0
 public static bool CanManage(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 4));
 }
Beispiel #5
0
 public static bool CanRead(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 1));
 }
Beispiel #6
0
 public static bool CanWrite(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 2));
 }
Beispiel #7
0
 public static bool CanManage(byte v)
 {
     return(Bitset8.GetBit(v, 4));
 }
Beispiel #8
0
        //---------------------------------------------------------------------

        public static bool CanList(PermissionType v)
        {
            return(Bitset8.GetBit((byte)v, 0));
        }
Beispiel #9
0
 public static bool CanWrite(byte v)
 {
     return(Bitset8.GetBit(v, 2));
 }
Beispiel #10
0
 public static bool CanDelete(byte v)
 {
     return(Bitset8.GetBit(v, 3));
 }
Beispiel #11
0
 public static bool CanRead(byte v)
 {
     return(Bitset8.GetBit(v, 1));
 }
Beispiel #12
0
        //---------------------------------------------------------------------

        public static bool CanList(byte v)
        {
            return(Bitset8.GetBit(v, 0));
        }
Beispiel #13
0
 public static bool CanManage(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 4));
 }
Beispiel #14
0
 public static bool CanDelete(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 3));
 }
Beispiel #15
0
 public static bool CanWrite(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 2));
 }