if max_users = 0, consider unlimited users
diff --git a/erpnext/utilities/page/users/users.py b/erpnext/utilities/page/users/users.py
index 2b7c884..7da8003 100644
--- a/erpnext/utilities/page/users/users.py
+++ b/erpnext/utilities/page/users/users.py
@@ -112,7 +112,7 @@
 		active_users = sql("""select count(*) from tabProfile
 			where ifnull(enabled, 0)=1 and docstatus<2
 			and name not in ('Administrator', 'Guest')""")[0][0]
-		if active_users >= conf.max_users and not conf.max_users:
+		if active_users >= conf.max_users and conf.max_users:
 			# same message as in users.js
 			webnotes.msgprint("""Alas! <br />\
 				You already have <b>%(active_users)s</b> active users, \