This commit is contained in:
Astrologies 2021-12-09 04:52:06 -05:00
parent 043f16a0af
commit 7026254a44
2 changed files with 1 additions and 13 deletions

View File

@ -1781,18 +1781,6 @@ function rankExists($groupid, $rank)
return false;
}
function generalGroupConfig($groupid)
{
$group = $GLOBALS['pdo']->prepare("SELECT * FROM groups WHERE id = :u");
$group->bindParam(":u", $groupid, PDO::PARAM_INT);
$group->execute();
$group = $group->fetch(PDO::FETCH_OBJ);
$groupname = $group->name;
$groupdescription = $group->description;
$groupapproval = $group->manualapproval;
}
function groupJoinRequests($groupid)
{
$requests = $GLOBALS['pdo']->prepare("SELECT * FROM group_join_requests WHERE groupid = :gid ORDER BY whenRequested DESC");

View File

@ -44,7 +44,7 @@ if ($id)
{
if (isAssetApproved($id) and !isAssetModerated($id)) //if the asset is approved and not moderated
{
if (WebContextManager::VerifyAccessKeyHeader()) //immediately allow full access (passing true disables die() and returns true or false)
if (WebContextManager::VerifyAccessKeyHeader()) //immediately allow full access
{
ReturnAsset($iteminfo->Hash, $iteminfo->AssetTypeId);
}