]> git.r.bdr.sh - rbdr/mobius/commitdiff
Remove unneeded code
authorJeff Halter <redacted>
Wed, 22 Jun 2022 23:26:37 +0000 (16:26 -0700)
committerJeff Halter <redacted>
Wed, 22 Jun 2022 23:26:37 +0000 (16:26 -0700)
hotline/client_conn.go

index 997b9c921a50966cd368f27b3cf48739cc41c16a..5780f6de04162a803b5affd305cc6de26e44457d 100644 (file)
@@ -156,10 +156,6 @@ func (cc *ClientConn) uint16ID() uint16 {
 
 // Authorize checks if the user account has the specified permission
 func (cc *ClientConn) Authorize(access int) bool {
-       if access == 0 {
-               return true
-       }
-
        i := big.NewInt(int64(binary.BigEndian.Uint64(*cc.Account.Access)))
 
        return i.Bit(63-access) == 1