The fastest easiest way to get it right.

Table Security

A group's permissions on a particular table are inherited first from the group definition itself, and then from any module-level overrides. However, the programmer can also specify specific permissions table-by-table. The syntax is fairly simple.

For completeness, we begin with a definition of a module and a group:

# Define the inventory module
module inventory:
    description: Inventory Tables
    uisort: 300

# Now define a group with minimal default permissions,
# and override those permissions for the inventory
# module
group minimal:
    description: Minimal Permissions
    permsel: N
    permins: N
    permupd: N
    permdel: N

    module inventory:
        permsel: Y
        permins: N
        permupd: N
        permdel: N

Now we want to create two tables in the inventory module and override the "minimal" group's permissions:

table supersecret:
    module: inventory
    description: Secret Details
    
    # Revoke this group's permissions on this table
    group minimal:
        permsel: N
        permins: N
        permupd: N
        permdel: N
   
    #... column definitions follow
        

table anybodycanwrite:
    module: inventory
    description: Anybody Can Write
    
    # Give the group extra permissions on this table
    group minimal:
        permsel: Y
        permins: Y
        permupd: Y
        permdel: Y

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2