diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 5cd78acb..0b515743 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -176,6 +176,8 @@ class MemberTableField extends ComplexTableField { $className, sprintf('"%s" = \'%s\'', $identifierField, $data[$identifierField]) ); + + if($record && !$record->canEdit()) return $this->httpError('401'); } // Fall back to creating a new record