egroupware/admin/inc/class.boaclmanager.inc.php

50 lines
1.4 KiB
PHP
Raw Permalink Normal View History

<?php
/**************************************************************************\
2004-01-27 00:26:19 +01:00
* eGroupWare - Administration *
* http://www.egroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
class boaclmanager
{
var $ui;
var $so;
var $public_functions = array(
2001-09-04 05:34:02 +02:00
'submit' => True
);
function boaclmanager()
{
2005-10-14 19:03:16 +02:00
//$this->so =& CreateObject('admin.soaclmanager');
$this->ui =& CreateObject('admin.uiaclmanager');
}
function submit()
{
if ($GLOBALS['cancel'])
{
$this->ui->list_apps();
return False;
}
$location = base64_decode($GLOBALS['location']);
$total_rights = 0;
while (is_array($GLOBALS['acl_rights']) && list(,$rights) = each($GLOBALS['acl_rights']))
{
$total_rights += $rights;
}
2005-10-14 19:03:16 +02:00
$GLOBALS['egw']->acl->add_repository($GLOBALS['acl_app'], $location, $GLOBALS['account_id'], $total_rights);
$this->ui->list_apps();
}
}