Home » Authentication » LiveUser » Bug #1662
LIVEUSER_MAX_LEVEL constant inclusion missing in Admin class
Details
| Submitted | 2004-06-16 22:32 UTC |
|---|---|
| From | xav at spotk dot net |
| Assigned | lsmith |
| Status | Closed |
| Package | LiveUser |
| PHP Version | 4.3.7 |
| OS | linux debian sarge |
| Roadmaps | (Not assigned) |
Comments
[2004-06-16 22:32 UTC] xav at spotk dot net
Description:
------------
In DB medium perm admin container, SQL error (see below) when using grantUserRight() method
LIVEUSER_MAX_LEVEL constant is used in /Admin/Perm/Container/DB_Medium.php but is declared in LiveUser.php which is not include in Admin classes
Reproduce code:
---------------
$ret = $objRightsAdminPerm->grantUserRight($user_perm_id, $right_1);
Expected result:
----------------
No sql error
Actual result:
--------------
Erreur :DB Error: no such field -INSERT INTO
liveuser_userrights
(perm_user_id, right_id, right_level)
VALUES
(
4,
49, LIVEUSER_MAX_LEVEL
) [nativecode=ERROR: column "liveuser_max_level" does not exist]
[2004-06-17 14:03 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.