What is the best way to manage permissions for a web application - bitmask or database table?

前端 未结 9 763
感动是毒
感动是毒 2020-12-22 19:06

I\'m considering the best way to design a permissions system for an \"admin\" web application. The application is likely to have many users, each of whom could be assigned a

9条回答
  •  攒了一身酷
    2020-12-22 19:35

    Can't comment because I am new to SO, but in regards to the accepted answer - a huge advantage that comes with this solution is the ability to universally handle permissions, instead of just if statements everywhere in the code, as well as special abilities such as allowing temporary permissions (permissions that have an expiration date)

提交回复
热议问题