Language: PHP
Label: vulnerable
CWE: CWE-281 \u2014 Improper Preservation of Permissions
The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.

Code:
    public static function areRestrictedUsersAllowed()
    {
        return self::get(ForgeAccess::CONFIG) === ForgeAccess::RESTRICTED;
    }