PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser » Bug #1773

removeRight with DB_Simple

Details

Submitted2004-07-02 13:08 UTC
Fromlapini at gmx dot net
Assignedarnaud
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2004-07-02 13:08 UTC] lapini at gmx dot net

Description:
------------
LiveUser 0.12.0

The removeRight method of the LiveUser_Admin_Perm_Container_DB_Simple class tries to remove also the group right, and the right translations even though groups and translations are not used by DB_Simple.

So when you use DB_Simple with only the DB_Simple database-scheme you will get an SQL error 'table not found'

Reproduce code:
---------------
$admin_perm = new LiveUser_Admin_Perm_Container_DB_Simple($conf['permContainer']);

$admin_perm->removeRight($right_id);

Expected result:
----------------
return true

Actual result:
--------------
returns DB-Error Message 'table not found'

[2004-07-02 13:15 UTC] lapini at gmx dot net

Update: As I just saw, translations ARE used by DB_Simple
so the bug only affects the group_rights table