mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 23:44:11 +01:00
Compare commits
4 Commits
issue/7071
...
issue/7746
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8103f4c92c | ||
|
|
d6f3ee9758 | ||
|
|
808168b9e7 | ||
|
|
120eb702a7 |
@@ -1155,7 +1155,7 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
|
||||
left: 3px;
|
||||
color: $brand-primary;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
};
|
||||
/* Note: We don't put the .form_field selector as it must work for read-only */
|
||||
.form-control-static img{
|
||||
max-width: 100% !important;
|
||||
|
||||
@@ -763,7 +763,7 @@ class ActivityPanel extends UIBlock
|
||||
*/
|
||||
public function IsComposeButtonEnabled(): bool
|
||||
{
|
||||
return $this->HasAnEditableCaseLogTab() && $this->IsCaseLogsSubmitAutonomous();
|
||||
return $this->HasAnEditableCaseLogTab() && $this->IsCaseLogsSubmitAutonomous() && $this->HasUserModifyRights();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -974,4 +974,13 @@ class ActivityPanel extends UIBlock
|
||||
$this->bShowMultipleEntriesSubmitConfirmation = appUserPreferences::GetPref('activity_panel.show_multiple_entries_submit_confirmation', static::DEFAULT_SHOW_MULTIPLE_ENTRIES_SUBMI_CONFIRMATION) !== 'false';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @throws \CoreException
|
||||
*/
|
||||
protected function HasUserModifyRights(): bool
|
||||
{
|
||||
return \UserRights::IsActionAllowed($this->GetObjectClass(), UR_ACTION_MODIFY);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user