Home » Authentication » LiveUser » Bug #1773
removeRight with DB_Simple
Details
| Submitted | 2004-07-02 13:08 UTC |
|---|---|
| From | lapini at gmx dot net |
| Assigned | arnaud |
| Status | Closed |
| Package | LiveUser |
| PHP Version | Irrelevant |
| OS | Windows 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