aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-22 16:26:37 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-22 16:26:37 -0700
commitdb484a6c604d17a3df5c9ce10c12d56347e2fc40 (patch)
tree93771d998cb6b658533ca55999e9342278911f73
parent2a42aad2a01e50d158a13439f851e49c799c5510 (diff)
Remove unneeded code
-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