Is there any function available to check a user is admin or not with user ID we have ?
suppose I have a user_guid 75 and need to check it is a admin or not ?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- iionly@iionly
iionly - 1 like
- Steve Clay@steve_clay
Steve Clay - 1 like
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Tommy@letom
Tommy - 0 likes
You must log in to post replies.Now check:
With user guid in $user_guid:
@RvR check the elgg_get_admins() function. E.g.
But for the OP, elgg_is_admin_user() is fine.
@Steve Clay forgot about it. Thanks!
Thanks for all replies, especially @iionly for simple step