Welcome to Geeklog, Anonymous Tuesday, April 16 2024 @ 10:15 pm EDT

Geeklog Forums

Plugin groups / feature question


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..
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

All times are EDT. The time is now 10:15 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content