Cascade Core  v0.12-1-g22cbbeb
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
IAuth Interface Reference

Authorizator interface, used by CascadeController to determine whether user is allowed to perform an action or not. More...

Public Member Functions

 isBlockAllowed ($block_name, &$details=null)
 Level 1: Check if block is allowed to current user.
 

Detailed Description

Authorizator interface, used by CascadeController to determine whether user is allowed to perform an action or not.

Authorization is separed into two levels:

  1. Block level
  2. Entity level

When permission is denied at the first level, block is not executed at all. The second level permissions are be checked by each block, therefore, there is a lot of space for errors. User must pass both levels to perform the action.

Only the first level is in scope of this interface and the CascadeController.