Permissions ACL or RBAC?

Source: Internet
Author: User
Tags zend framework
By assigning a permission ID to each link, when you have this ID, it means that you can access it, which is called an ACL?
Or is it nothing?

More and more confused ~ ~ Beg for explanation. Better be a little more detailed.

Reply content:

By assigning a permission ID to each link, when you have this ID, it means that you can access it, which is called an ACL?
Or is it nothing?

More and more confused ~ ~ Beg for explanation. Better be a little more detailed.

This is a simple filter, like when landing with token, without token jump to landing page.
An ACL is an access control mechanism that is linked directly to the user's permissions. This is an excellent ACL class for Zend Framework frameworks.
RBAC is role-based access control, where users are only associated with roles, and roles can have different permissions.
Take thinkphp as an example, RBAC has a basic five tables: think_user (User table), Think_role (User Group table), Think_node (Operation node), Think_role_user (user and user groups corresponding), THINK_ Access (corresponding to each action and user group).
Online This example of the code is more, the most simple and rough is that you go through this process can clarify the correlation relationship, the most basic relationship between the clear, and then complex authority system is so back to the matter, nothing more than a table association.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.