isLoggedIn(); } } if (! function_exists('is_member')) { /** * Is member * * @return boolean */ function is_member($groupPar, $userId) { $aauth = new Aauth(); return $aauth->isMember($groupPar, $userId); } } if (! function_exists('is_allowed')) { /** * Is allowed * * @return boolean */ function is_allowed($permPar, $userId) { $aauth = new Aauth(); return $aauth->isAllowed($permPar, $userId); } } if (! function_exists('is_denied')) { /** * Is denied * * @return boolean */ function is_denied($permPar, $userId) { $aauth = new Aauth(); return $aauth->isDenied($permPar, $userId); } } if (! function_exists('get_subgroups')) { /** * Get Sub-Groups by Group Name/Id * * @return array */ function get_subgroups($groupPar) { $aauth = new Aauth(); return $aauth->getSubgroups($groupPar); } } if (! function_exists('get_user_perms')) { /** * Get User Groups * * @return array */ function get_user_groups($userId) { $aauth = new Aauth(); return $aauth->getUserGroups($userId); } } if (! function_exists('get_user_perms')) { /** * Get Group Perms by Group Name/Id * * @return array */ function get_user_perms($userId, $state = null) { $aauth = new Aauth(); return $aauth->getUserPerms($userId, $state); } } if (! function_exists('get_group_perms')) { /** * Get Group Perms by Group Name/Id * * @return array */ function get_group_perms($groupPar, $state = null) { $aauth = new Aauth(); return $aauth->getGroupPerms($groupPar, $state); } }