How to check if an user is a group owner ?
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.
- PaK-Zer0@PaKZer0

PaK-Zer0 - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- ivanoman@ivanoman

ivanoman - 0 likes
- ivanoman@ivanoman

ivanoman - 0 likes
You must log in to post replies.You mean programatically? Could you be a little more specific? I guess the help you can get is limited to the size of the explanation of your problem.
// $AnyGroupObj is our group object.
if(elgg_get_logged_in_user_guid()==$AnyGroupObj->owner_guid)
{
echo"..smile...;-)";
}
Thanks DhrupDeScoop
So i change my
mod\event_calendar\views\default\event_calendar\group_module.php
and add :
if(elgg_get_logged_in_user_guid()==$AnyGroupObj->owner_guid){
$new_link = elgg_view('output/url', array(
'href' => "event_calendar/add/$group->guid",
'text' => elgg_echo('event_calendar:new'),
));
}
correct ?