aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
Diffstat (limited to 'hotline')
-rw-r--r--hotline/client_conn.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/hotline/client_conn.go b/hotline/client_conn.go
index 997b9c9..5780f6d 100644
--- a/hotline/client_conn.go
+++ b/hotline/client_conn.go
@@ -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