mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
Merge pull request #3831 from Icinga/feature/custom-author-for-announcements-created-over-api-3644
AnnouncementForm: Don't disable author field if it's an API request
This commit is contained in:
commit
c28155408f
@ -37,7 +37,7 @@ class AnnouncementForm extends RepositoryForm
|
|||||||
'text',
|
'text',
|
||||||
'author',
|
'author',
|
||||||
array(
|
array(
|
||||||
'disabled' => true,
|
'disabled' => ! $this->getRequest()->isApiRequest(),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'value' => Auth::getInstance()->getUser()->getUsername()
|
'value' => Auth::getInstance()->getUser()->getUsername()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user