Merge branch 'issue/7746' into develop

This commit is contained in:
XGUI
2024-11-29 08:24:27 +01:00
3 changed files with 31 additions and 3 deletions

View File

@@ -1150,12 +1150,13 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
}
}
.form_field .form_mandatory .control-label:after{
content: "\002a";
content: "\1F6C8";
position: relative;
left: 3px;
color: $brand-primary;
font-size: 0.9em;
}
font-weight: 200;
};
/* Note: We don't put the .form_field selector as it must work for read-only */
.form-control-static img{
max-width: 100% !important;

View File

@@ -2043,4 +2043,22 @@
</profiles>
</user_rights>
<constants/>
<snippets>
<snippet id="GestionCssInfo" _delta="define">
<placement>module</placement>
<module>itop-structure</module>
<rank>-1</rank>
<content>
<![CDATA[
class GestionCssInfo implements iBackofficeStyleExtension
{
public function GetStyle(): string
{
return '.ibo-field--label>.ibo-has-description::after, .ibo-input-with-label--label.ibo-has-description::after{content:"\1F6C8"; font-weight: 200;} ';
}
}
]]>
</content>
</snippet>
</snippets>
</itop_design>

View File

@@ -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);
}
}