<?php $tenantDomain = API::getTenantDomain(); $settings = appStorage::getSettings($tenantDomain); $webstore = json_decode($settings->getPropertyValue("webstore")); $app->render('settings/webstore.twig', ['webstore' => $webstore]);
public static function getAcademicStatus() { $tenantDomain = self::getTenantDomain(); $settings = appStorage::getSettings($tenantDomain); $access = $settings->getPropertyValue("access"); if ($access == "everyone") { return "students"; } else { $memberOf = self::memberOf(); $accessGroups = json_decode($settings->getPropertyValue("accessGroups")); foreach ($memberOf as $group) { if (in_array($group['objectId'], $accessGroups->students)) { return "students"; } else { if (in_array($group['objectId'], $accessGroups->faculty)) { return "faculty"; } else { if (in_array($group['objectId'], $accessGroups->staff)) { return "staff"; } } } } return false; } }