tools.alter_privileges module
User privilege management with 64-bit bitmask system.
Each user has a 64-bit integer stored in Redis whose individual bits
represent specific privileges. Admins (config.admin_user_ids)
implicitly have all 64 bits set.
Other tool modules can import the helpers to check privileges:
from tools.alter_privileges import has_privilege, PRIVILEGES