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 6429 to 6433

Definition

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

This article was last updated 18th March 2025 14:35 Europe/London time based on the source file dated 6th March 2025 14:30 Europe/London time.