aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-26 20:35:13 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-26 20:35:13 -0700
commit43754e316aee5cffa5b50f7bf879178709368000 (patch)
tree4b9da3bd6dcca94f3d0340f59a323cebd7aa6485 /hotline
parent187d6dc500784760654b740a278fef59072ca5a8 (diff)
Fix userAdminFlag bug
Diffstat (limited to 'hotline')
-rw-r--r--hotline/transaction_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go
index 23ac68a..23ee0e6 100644
--- a/hotline/transaction_handlers.go
+++ b/hotline/transaction_handlers.go
@@ -651,7 +651,7 @@ func HandleSetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error
res = append(res, *newT)
flagBitmap := big.NewInt(int64(binary.BigEndian.Uint16(c.Flags)))
- if cc.Authorize(accessDisconUser) {
+ if c.Authorize(accessDisconUser) {
flagBitmap.SetBit(flagBitmap, userFlagAdmin, 1)
} else {
flagBitmap.SetBit(flagBitmap, userFlagAdmin, 0)