Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Permissions

blazeeboy edited this page Mar 13, 2011 · 2 revisions

What are Permissions ?

permission is a boolean expression (TRUE/FALSE) that determine who/when could view/edit/update…etc a piece of content or a section.

h2.What are the permissions tokens ?

you can use 2 types of tokens :

  1. Connector : and, or, not
  2. Operator : =, !=, >, <, >=, <=, !
  3. Boolean variables : (True/false) variable like ,admin, logged, guest, view, edit
  4. Numeric variables : group, user, section, day, month, year
    the permission syntax is :
expression Connector expression
expression = expression Connector expression 
expression = {BooleanVariable} or {NumericVar Oper Number}

example :

guest or user=4 and day=13

that will be true if the user guest in or user ID equal to 4 and the current day is 13,
if you want to exclude user 14 from the permission.

guest or !user=4 and day=13

that will show for guest user or not the user 4 and day is 13

some other examples :

logged

admin or group=5

!group=6 and user=5 and user=7

group=3 and day>1 and day<10 and year>=2011
Clone this wiki locally