diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 3a0728463..a89ea6b55 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -265,15 +265,11 @@ class RelationController extends ControllerBehavior switch ($this->relationType) { case 'hasMany': + case 'belongsToMany': return ['add', 'create', 'delete', 'remove']; - case 'belongsToMany': - return ['create', 'add', 'remove']; - - case 'belongsTo': - return ['create', 'update', 'link', 'delete', 'unlink']; - case 'hasOne': + case 'belongsTo': return ['create', 'update', 'link', 'delete', 'unlink']; } }