Fix for SF Bug #417440

This commit is contained in:
skeeter 2001-05-08 21:05:56 +00:00
parent 451449045d
commit 6793fc6013
2 changed files with 4 additions and 4 deletions

View File

@ -67,9 +67,9 @@
. "$n_app_status',app_order='$app_order' where app_name='$old_app_name'",__LINE__,__FILE__);
if($n_app_anonymous) {
$phpgw->acl->add($n_app_name,'everywhere',0,'g',PHPGW_ACL_READ);
$phpgw->acl->add_repository($n_app_name,'everywhere',0,PHPGW_ACL_READ);
} else {
$phpgw->acl->delete($n_app_name,'everywhere',0,'g');
$phpgw->acl->delete_repository($n_app_name,'everywhere',0);
}
Header("Location: " . $phpgw->link("/admin/applications.php"));
@ -92,7 +92,7 @@
$n_app_status = $phpgw->db->f("app_enabled");
$old_app_name = $phpgw->db->f("app_name");
$app_order = $phpgw->db->f("app_order");
$n_app_anonymous = $phpgw->acl->check('', PHPGW_ACL_READ, $n_app_name);
$n_app_anonymous = $phpgw->acl->check('everywhere', PHPGW_ACL_READ, $n_app_name);
}
$p->set_var("lang_header",lang("Edit application"));

View File

@ -61,7 +61,7 @@
. "$n_app_status','$app_order')",__LINE__,__FILE__);
if($n_app_anonymous) {
$phpgw->acl->add($n_app_name,'everywhere',0,'g',1);
$phpgw->acl->add_repository($n_app_name,'everywhere',0,PHPGW_ACL_READ);
}
Header("Location: " . $phpgw->link("/admin/applications.php"));