mgd_is_group_owner

Name

mgd_is_group_owner -- Check group ownership

Synopsis

bool mgd_is_group_owner(int id);

Description

Minimum version: Midgard 1.4 (Bifrost)

Checks wether the authenticated user is owner of the group record with id id.

Returns true if successfull. Returns false on failure.

Example

<?php
 if($isowner = mgd_is_group_owner(13)) {
   # do something usefull.
 }
?>