mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Use enums for LabelOptions
This commit is contained in:
@@ -159,7 +159,7 @@ abstract class BaseAdminController extends AbstractController
|
||||
//Disable editing of options, if user is not allowed to use twig...
|
||||
if (
|
||||
$entity instanceof LabelProfile
|
||||
&& 'twig' === $entity->getOptions()->getLinesMode()
|
||||
&& 'twig' === $entity->getOptions()->getProcessMode()
|
||||
&& !$this->isGranted('@labels.use_twig')
|
||||
) {
|
||||
$form_options['disable_options'] = true;
|
||||
|
||||
Reference in New Issue
Block a user