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 #2724

new method checkGroup()

Details

Request #2724new method checkGroup()
Submitted2004-11-09 17:47 UTC
Fromroehr at zilleon dot com
StatusClosed
PackageLiveUser_Admin
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-11-09 17:47 UTC] roehr at zilleon dot com

Description:
------------
As far as I have seen there is no method yet to check if the user is part of a certain group. This one-liner in LiveUser.php would do the trick:

Reproduce code:
---------------
function checkGroup($groupId) {
return (is_object($this->_perm) && is_array($this->_perm->groupIds) && in_array($groupId, $this->_perm->groupIds));
}

Regards, Torsten Roehr

[2004-11-23 08:13 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.

The new admin API will let you easily filter something like this inside the standard getGroups() or getUsers() method.