1
offmct
How to get module admins
  • 2004/9/9 23:47

  • offmct

  • Just popping in

  • Posts: 3

  • Since: 2004/9/9 2


Hey there! Is there a function to get the module admins?... Maybe like getModuleAdmins($mod_id)? If there is none, is there a way to get the module admins besides directly querying from the database. This is because i would like to display the admins of a certain module.

2
Dave_L
Re: How to get module admins
  • 2004/9/10 0:41

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I haven't come across such a function.

The way to get the information from the database would be to query the xoops_group_permission table to get the groups that have the module_admin right for that particular module, and then query the xoops_groups_users_link table to get the users in those groups.

Publicly displaying the usernames of admins is not necessarily a good idea from a security viewpoint, but that's up to you.

Login

Who's Online

210 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits