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

前端 未结 9 785
感动是毒
感动是毒 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:41

    how about creating a Permission table, then a UserPermission table to store the relationships?

    You'll never have to modify the structure again, and you have the ability to add as many permissionss as you wish.

提交回复
热议问题