Status: offline

timatlee

Forum User
Newbie
Registered: 06/06/04
Posts: 14
Hello ...

Is there an "easy" way of finding out what groups a user belongs to based on a feature?

So, if I had feature "plugin.feature", and "Plugin Group 1" and "Plugin Group 2" both had that feature as part of their rights (either directly or inherited), is there a way I can retrieve the group names?

Thanks..

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by timatlee: Is there an "easy" way of finding out what groups a user belongs to based on a feature?

I don't think we have a function for that.

Check the code in lib-security.php and admin/group.php. You may find some snippets there that you can use to build such a function.

bye, Dirk