Right System
GrandCMS have a right system whereby you can control who can see a content or who can't.
Usually websites are public what everybody can see. But sometime you may need content what just some users or user groups can see. For this, menus, categories, information have a rights tab like below:
How it works?
You can allow or deny to view a content for users and user groups.
- First the system check the allowed groups and the allowed users list. If the visitor is in one of allowed user groups or the visitor is in the allowed users list then the system will continue the process else the system won't show the content.
- Second the system check the denied groups and the denied users list. If the visitor is in one of denied groups or the visitor is in the denied users list then the system won't show the content.
- So if the visitor was allowed and wasn't denied then the system will show the content.
Builtin user groups for right system
GrandCMS have three builtin groups. You can't delete these groups, but you can rename them.
- Everybody represent all visitors. If you denied a content from this group then nobody can see that content.
- Guest represent those visitors who browse your site without logged in status. They have no ID what could tell to the system who are they so they are guests.
- Users represent those visitors who logged in, so they have account.
Examples
Here is some examples:
You want to hide an information from your guests but you want to show it to your users. It could be a common premium content. You can do it not just one way:
- Allowed groups: everybody, Denied groups: guest (Add guest to denied groups)
- Allowed groups: users (Remove everybody from allowed groups and add here users group)
You want to show a content only one specific group, example: "managers":
- Allowed groups: managers (Remove everybody from allowed groups and add here "manager" group)
- Allowed groups: everybody, Denied groups: users (Add users to denied groups)
- Allowed groups: guest (Remove everybody from allowed groups and add here guest group)