added API for handling work contract times (#4016)
This commit is contained in:
@@ -75,7 +75,7 @@ kimai:
|
||||
# PERMISSIONS
|
||||
# --------------------------------------------------------------------------------
|
||||
permissions:
|
||||
# mapping complex rule sets of single permissions to named "sets" ("set name" = [array of "permissions and @SETS"])
|
||||
# mapping a "set name" to an array of "permission names"
|
||||
sets:
|
||||
ACTIVITIES: ['view_activity','create_activity','edit_activity','budget_activity','time_activity','delete_activity','permissions_activity']
|
||||
ACTIVITIES_ALL_TEAMLEAD: ['view_teamlead_activity','edit_teamlead_activity','budget_teamlead_activity','time_teamlead_activity','permissions_teamlead_activity']
|
||||
@@ -107,7 +107,7 @@ kimai:
|
||||
REPORTING: ['view_reporting','view_other_reporting','project_reporting','customer_reporting']
|
||||
# permissions which are deactivated, as these features are hidden for now
|
||||
# brave users can try to activate them and be surprised what happens
|
||||
REGISTER_BETA: []
|
||||
REGISTER_BETA: ['contract_other_profile']
|
||||
# mapping a "role name" to an array of "set names"
|
||||
maps:
|
||||
ROLE_USER: ['TIMESHEET','PROFILE']
|
||||
@@ -118,7 +118,9 @@ kimai:
|
||||
roles:
|
||||
ROLE_USER: ['view_team_member','time_team_project','create_tag','view_reporting']
|
||||
ROLE_TEAMLEAD: ['view_rate_own_timesheet','view_rate_other_timesheet','hourly-rate_own_profile','view_team_member']
|
||||
# TODO contract_other_profile
|
||||
ROLE_ADMIN: ['hourly-rate_own_profile','edit_exported_timesheet','teams_own_profile','view_team_member','view_all_data']
|
||||
# TODO contract_other_profile
|
||||
ROLE_SUPER_ADMIN: ['hourly-rate_own_profile','hourly-rate_other_profile','roles_own_profile','system_information','system_configuration','plugins','edit_exported_timesheet','teams_own_profile','view_team_member','upload_invoice_template','view_all_data']
|
||||
# --------------------------------------------------------------------------------
|
||||
|
||||
@@ -162,3 +164,7 @@ kimai:
|
||||
when@test:
|
||||
kimai:
|
||||
data_dir: '%kernel.project_dir%/tests/_data'
|
||||
permissions:
|
||||
roles:
|
||||
ROLE_ADMIN: ['contract_other_profile']
|
||||
ROLE_SUPER_ADMIN: ['contract_other_profile']
|
||||
|
||||
@@ -55,6 +55,7 @@ tabler:
|
||||
columns: fas fa-table
|
||||
comment: far fa-comment
|
||||
configuration: fas fa-cog
|
||||
contract: fas fa-balance-scale
|
||||
copy: far fa-copy
|
||||
create: fas fa-plus
|
||||
csv: fas fa-table
|
||||
@@ -109,6 +110,7 @@ tabler:
|
||||
repeat: fas fa-redo-alt
|
||||
reporting: far fa-chart-bar
|
||||
report: far fa-chart-bar
|
||||
review: fas fa-user-check
|
||||
right: fas fa-chevron-right
|
||||
right2: fas fa-angle-double-right
|
||||
roles: fas fa-user-shield
|
||||
@@ -136,4 +138,5 @@ tabler:
|
||||
weekly-times: fas fa-th
|
||||
widget_add: fas fa-folder-plus
|
||||
widget_remove: fas fa-folder-minus
|
||||
work_times: fas fa-calculator
|
||||
xlsx: fas fa-file-excel
|
||||
|
||||
Reference in New Issue
Block a user