Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Fix entity class use from client.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed May 1, 2019
1 parent e1d4e23 commit b2f1cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ function ($arr) use ($restricted) {
protected function loadEntity($entityData) {
if (!class_exists($entityData['class'])
|| $entityData['class'] === 'Entity'
|| $entityData['class'] === 'Nymph\Entity'
|| $entityData['class'] === '\Nymph\Entity'
) {
// Don't let clients use the `Entity` class, since it has no validity/AC
Expand Down

0 comments on commit b2f1cdf

Please sign in to comment.