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.

  1. 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.
  2. 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.
  3. So if the visitor was allowed and wasn't denied then the system will show the content.
As you can see if you don't allow the content then nobody can see it. When you create a content the GrandCMS allow it for everybody. So if you want to allow it to specific group(s) or user(s) you have to make a proper rule in this tab.

Builtin user groups for right system

GrandCMS have three builtin groups. You can't delete these groups, but you can rename them. 

  1. Everybody represent all visitors.  If you denied a content from this group then nobody can see that content.
  2. 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.
  3. 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:

  1. Allowed groups: everybody, Denied groups: guest (Add guest to denied groups)
  2. Allowed groups: users (Remove everybody from allowed groups and add here users group)
Of course you can use any user group and any user to make rules.

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)
You want to show a content only to your guests but you don't want to bother your users with it (advertisement or else). You can do it not just one way:

  1. Allowed groups: everybody, Denied groups: users (Add users to denied groups)
  2. Allowed groups: guest (Remove everybody from allowed groups and add here guest group)
As you can see you can make simple or really complex rules easy. You can hide or show menus, with this trick too.