PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser_Admin » Bug #4618

Cannot remove areas and groups

Details

Submitted2005-06-17 11:53 UTC
Frommarek dot zebrowski at grupaantares dot com dot pl
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version4.3.11
OSLinux
Roadmaps(Not assigned)

Comments

[2005-06-17 11:53 UTC] marek dot zebrowski at grupaantares dot com dot pl

Description:
------------
Cannot remove areas and groups

Reproduce code:
---------------
$data=array('area_id'=>11)
$admin->perm->removeArea($data);

Expected result:
----------------
area is removed

Actual result:
--------------
DB Error: no such field:
DELETE FROM liveuser_grouprights WHERE area_id = '21' [nativecode=ERROR: column "area_id" does not exist]message:

Couldn't create the query, reason: DB Error: no such field-DELETE FROM liveuser_grouprights WHERE area_id = '21' [nativecode=ERROR: column "area_id" does not exist]

[2005-06-17 11:59 UTC] smith at backendmedia dot com

Could you try current CVS. We have fixed a few issues in regards to removal of relations.

[2005-06-20 14:11 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

I could not reproduce the problem with the following test

$admin =& LiveUser_Admin::factory($conf);
$admin->setAdminContainers();

$app = $admin->perm->addApplication(array('application_define_name' => 'app'));
$area = $admin->perm->addArea(array('area_define_name' => 'area', 'application_id' => $app));
$right = $admin->perm->addRight(array('right_define_name' => 'right', 'area_id' => $area));
$group = $admin->perm->addGroup(array('group_define_name' => 'group'));
$admin->perm->grantGroupRight(array('group_id' => $group, 'right_id' => $right));
$admin->perm->removeArea(array('area_id' => $area));