mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
localisation type not available to edit by users
This commit is contained in:
@@ -67,6 +67,12 @@ class LocationType
|
||||
*/
|
||||
private ?string $defaultFor = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
private bool $editableByUsers = true;
|
||||
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
@@ -107,6 +113,11 @@ class LocationType
|
||||
return $this->defaultFor;
|
||||
}
|
||||
|
||||
public function getEditableByUsers(): ?bool
|
||||
{
|
||||
return $this->editableByUsers;
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
@@ -152,6 +163,13 @@ class LocationType
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setEditableByUsers(bool $editableByUsers): self
|
||||
{
|
||||
$this->editableByUsers = $editableByUsers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setTitle(array $title): self
|
||||
{
|
||||
$this->title = $title;
|
||||
|
Reference in New Issue
Block a user