added new permission to separate time and money budget (#3352)
This commit is contained in:
@@ -90,8 +90,7 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if is_granted('budget', project) %}
|
||||
{% if project.hasBudget() %}
|
||||
{% if project.hasBudget() and is_granted('budget', project) %}
|
||||
<tr>
|
||||
<th>
|
||||
{{ 'label.budget'|trans }}
|
||||
@@ -103,8 +102,8 @@
|
||||
{{ project.getBudget()|money(project.customer.currency) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if project.hasTimeBudget() %}
|
||||
{% endif %}
|
||||
{% if project.hasTimeBudget() and is_granted('time', project) %}
|
||||
<tr>
|
||||
<th>
|
||||
{{ 'label.timeBudget'|trans }}
|
||||
@@ -116,7 +115,6 @@
|
||||
{{ project.getTimeBudget()|duration }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for metaField in project.visibleMetaFields|sort((a, b) => a.order <=> b.order) %}
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user