I was very impressed with vBulletin’s use of bitmasking for permissions (of which there were many possible combinations) when I first encountered it.
Would love an excuse to use it, but one has not come up in like 15 years since, hah.