<?php
/**
 * File: $Id$
 *
 * View the current groups
 *
 * @package Xaraya eXtensible Management System
 * @copyright (C) 2003 by the Xaraya Development Team.
 * @license GPL <http://www.gnu.org/licenses/gpl.html>
 * @link http://www.xaraya.com
 * @subpackage Roles Module
 * @author Xaraya Team
 */
/**
 * viewRoles - view the current groups
 * Takes no parameters
 */
function roles_admin_viewroles()
{
    // Clear Session Vars
    xarSessionDelVar('roles_statusmsg');
    // Security Check
    if (!xarSecurityCheck('EditRole')) return;
    // Call the Roles class
    $roles = new xarRoles();

    include_once 'modules/roles/xartreerenderer.php';
    $renderer = new xarTreeRenderer();
    // Load Template
    $data['authid'] = xarSecGenAuthKey();
    $data['tree'] = $renderer->drawtree($renderer->maketree());
    return $data;
}

?>