Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

 
Found 135 of 135 records in table Wiki
Now Showing 96 of 135

Current Record: setSecurityFilters

setSecurityFilter() method

[Permalink]

Example

In the delegate class for the users table:

<?php
class tables_users {
    function init(&$table){
        if ( !isAdmin() ){
            $table->setSecurityFilter(array('group_id'=>10));
        }
    }
}

This will only set the filter on non-admin users (assuming that you have defined a function isAdmin() to tell you if the current user is an admin user.

blog comments powered by Disqus
Powered by Xataface
(c) 2005-2010 All rights reserved