When building and operating a website, we often encounter such needs: some content is intended for everyone to see, while some is specifically designed for certain user groups, such as exclusive paid membership content, VIP content, or materials for internal team review.AnQiCMS provides a powerful and flexible user group permission control mechanism, which can help us easily achieve the fine-grained display and hide of content.

The core concept of content permission control: user groups and reading levels

This design makes permission management intuitive and efficient:

  • User group management:You can create different user groups according to your business needs in the AnQiCMS backend, such as 'Visitor Group', 'Registered Member', 'VIP Member', 'Senior VIP', 'Administrator', and so on.
  • Permission level definition:Each user group can be assigned a specific permission level (for example, the visitor group level is 0, the registered member level is 1, and the VIP member level is 100).The higher the level, the greater the authority.
  • Content level setting:When you post or edit content (such as articles, products), you can specify a 'reading level' for it.For example, an article that is free and open to the public can be set to level 0, an article that requires registration to access can be set to level 1, and VIP exclusive content is set to level 100.

In this way, we can determine the visibility range of the content at the publishing stage, and users can automatically obtain access rights by logging in and having the corresponding membership level.

Configure the background: Set up your content permission system

In AnQiCMS background, setting up the content permission system is very intuitive.

First, inAdministrator managementPart, you can findGroup ManagementFunction. Here, you can create, edit, or delete different user groups. The most critical thing about each user group, besides the name and description, is its correspondingLevelSettings. Usually, we would refer to "visitor" (not logged in