hide multi update in tags view if delete_tag permission is missing (#2259)

This commit is contained in:
Kevin Papst
2021-01-14 12:44:56 +01:00
committed by GitHub
parent cb6924e6d6
commit bf47bb1840
4 changed files with 35 additions and 7 deletions

View File

@@ -51,6 +51,11 @@ class MultiUpdateTableDTO
return $this->actions;
}
public function hasAction(): bool
{
return \count($this->actions) > 1;
}
public function addAction(string $label, string $url): MultiUpdateTableDTO
{
$this->actions[$label] = $url;