resource_file_readonly()

Description

Check if resource file is read-only because it's part of the filestore template threshold

Parameters

ColumnTypeDefaultDescription
bool { $ref:
$user
$ref int|numeric-string Resource ID

Location

include/resource_functions.php lines 6471 to 6475

Definition

 
function resource_file_readonly($ref): bool
{
    global 
$fstemplate_alt_threshold;
    return 
$fstemplate_alt_threshold && $ref $fstemplate_alt_threshold;
}

This article was last updated 17th July 2025 21:35 Europe/London time based on the source file dated 10th July 2025 10:00 Europe/London time.