mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
AnnouncementForm: Don't disable author field if it's an API request
refs #3644
This commit is contained in:
parent
245f392a9d
commit
d790d8d7a7
@ -37,7 +37,7 @@ class AnnouncementForm extends RepositoryForm
|
||||
'text',
|
||||
'author',
|
||||
array(
|
||||
'disabled' => true,
|
||||
'disabled' => ! $this->getRequest()->isApiRequest(),
|
||||
'required' => true,
|
||||
'value' => Auth::getInstance()->getUser()->getUsername()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user