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:
Johannes Meyer 2019-07-02 15:40:26 +02:00 committed by GitHub
commit c28155408f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class AnnouncementForm extends RepositoryForm
'text',
'author',
array(
'disabled' => true,
'disabled' => ! $this->getRequest()->isApiRequest(),
'required' => true,
'value' => Auth::getInstance()->getUser()->getUsername()
)