setSecurityFilter() method
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.
var disqus_identifier = ‘xataface.com/wiki/setSecurityFilters’; (function() { var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true; dsq.src = ‘http://xataface.disqus.com/embed.js’; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq); })(); blog comments powered by Disqus
//<![CDATA[ (function() { var links = document.getElementsByTagName(‘a’); var query = ‘?’; for(var i = 0; i < links.length; i++) { if(links[i].href.indexOf(‘#disqus_thread’) >= 0) { query += ‘url’ + i + ‘=’ + encodeURIComponent(links[i].href) + ‘&’; } } document.write(‘