mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04: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',
|
||||
'author',
|
||||
array(
|
||||
'disabled' => true,
|
||||
'disabled' => ! $this->getRequest()->isApiRequest(),
|
||||
'required' => true,
|
||||
'value' => Auth::getInstance()->getUser()->getUsername()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user