<commit_before><?php 
class CreatorOnlyCanEditFormExtension extends Extension {
	function updateEditForm(&$form) {
		error_log('Creator id:'.$this->owner->CreatorID);
		error_log('Current member id:'.Member::currentUserID());

		$creatorID = Member::currentUserID();
		$formfields = $form->fields;
		$formid = $formfields->fieldbyName('ID');
		error_log($formid->value());
		$sql = "select CreatorID from SiteTree where ID=".$formid->value().' Limit 1';
		$result = DB::query($sql);
		$first = $result->first();
		$creatorID = $first['CreatorID'];
		error_log('CREATOR: '.$creatorID);

		if (!(Permission::check('ADMIN'))) {
			if ($creatorID != Member::currentUserID()) {
				$form->makeReadonly();
			}
		}
	}
}<commit_msg>MINOR: Remove error log debug<commit_after><?php 
class CreatorOnlyCanEditFormExtension extends Extension {
	function updateEditForm(&$form) {
		//error_log('Creator id:'.$this->owner->CreatorID);
		//error_log('Current member id:'.Member::currentUserID());

		$creatorID = Member::currentUserID();
		$formfields = $form->fields;
		$formid = $formfields->fieldbyName('ID');
		//error_log($formid->value());
		$sql = "select CreatorID from SiteTree where ID=".$formid->value().' Limit 1';
		$result = DB::query($sql);
		$first = $result->first();
		$creatorID = $first['CreatorID'];
		//error_log('CREATOR: '.$creatorID);

		if (!(Permission::check('ADMIN'))) {
			if ($creatorID != Member::currentUserID()) {
				$form->makeReadonly();
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.20149253731343283, 'fraction_numerical': 0.0013568521031207597, 'mean_word_length': 5.276595744680851, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6946916', 'n_tokens_mistral': 547, 'n_tokens_neox': 497, 'n_words': 88}