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…
Reference in New Issue