0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-03-17 22:42:38 +00:00

explain limited access if project or customer has team permission ()

This commit is contained in:
Kevin Papst 2020-10-01 19:16:31 +02:00 committed by GitHub
parent cafd84cee4
commit 0aa6baea2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 1 deletions

View file

@ -37,6 +37,7 @@ class ActivityToolbarForm extends AbstractToolbarForm
'yes' => 1,
'no' => 0,
],
'search' => false,
'placeholder' => null,
'required' => false,
'label' => 'label.globalsOnly',

View file

@ -90,6 +90,9 @@
{% if is_granted('permissions', activity) %}
{% set options = options|merge({'route_create': path('activity_team_create', {'id': activity.id}), 'route_edit': path('admin_activity_permissions', {'id': activity.id})}) %}
{% endif %}
{% if activity.project is not null and (activity.project.teams|length > 0 or activity.project.customer.teams|length > 0) %}
{% set options = options|merge({'empty_message': 'team.activity_visibility_inherited'}) %}
{% endif %}
{{ include('embeds/teams.html.twig', options) }}
{% endif %}

View file

@ -41,7 +41,7 @@
}) %}
{% for field in metaColumns %}
{% set columns = columns|merge({
('mf_' ~ field.name): {'title': field.label, 'class': 'hidden-xs hidden-sm', 'orderBy': false}
('mf_' ~ field.name): {'title': field.label|trans, 'class': 'hidden-xs hidden-sm', 'orderBy': false}
}) %}
{% endfor %}
{% set columns = columns|merge({

View file

@ -26,6 +26,10 @@
<source>team.project_visibility_inherited</source>
<target>Das Projekt ist nur eingeschränkt sichtbar, da Team Berechtigungen für den Kunden gesetzt sind.</target>
</trans-unit>
<trans-unit id="team.activity_visibility_inherited">
<source>team.activity_visibility_inherited</source>
<target>Die Tätigkeit ist nur eingeschränkt sichtbar, da Team Berechtigungen für das Projekt und/oder den Kunden gesetzt sind.</target>
</trans-unit>
<trans-unit id="team.create_default" approved="yes">
<source>team.create_default</source>
<target>Erstelle ein neues Team um den Zugriff zu beschränken</target>

View file

@ -26,6 +26,10 @@
<source>team.project_visibility_inherited</source>
<target>The project has limited access, because team permissions are set for the customer.</target>
</trans-unit>
<trans-unit id="team.activity_visibility_inherited">
<source>team.activity_visibility_inherited</source>
<target>The activity has limited access, because team permissions are set for the project and/or customer.</target>
</trans-unit>
<trans-unit id="team.create_default">
<source>team.create_default</source>
<target>Create a new team to limit access</target>