Skip to content

Commit

Permalink
feat: grant read access for Employee Checkin to ESS user (#708)
Browse files Browse the repository at this point in the history
(cherry picked from commit 223bc88)

# Conflicts:
#	hrms/patches.txt
  • Loading branch information
ruchamahabal authored and mergify[bot] committed Jul 20, 2023
1 parent 8b04fd8 commit f2196ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hrms/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ hrms.patches.post_install.set_payroll_entry_status
hrms.patches.v1_0.rearrange_employee_fields
hrms.patches.post_install.update_allocate_on_in_leave_type
hrms.patches.v14_0.create_custom_field_for_appraisal_template
hrms.patches.post_install.update_performance_module_changes #2023-04-17
<<<<<<< HEAD
hrms.patches.post_install.update_performance_module_changes #2023-04-17
=======
hrms.patches.post_install.update_performance_module_changes #2023-04-17
hrms.patches.v14_0.update_payroll_frequency_to_none_if_salary_slip_is_based_on_timesheet
hrms.patches.v14_0.update_ess_user_access
>>>>>>> 223bc88f (feat: grant read access for Employee Checkin to ESS user (#708))
5 changes: 5 additions & 0 deletions hrms/patches/v14_0/update_ess_user_access.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from hrms.setup import add_non_standard_user_types


def execute():
add_non_standard_user_types()
1 change: 1 addition & 0 deletions hrms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ def get_user_types_data():
"Training Program": ["read"],
"Training Feedback": ["read", "write", "create", "delete", "submit", "cancel", "amend"],
# shifts
"Employee Checkin": ["read"],
"Shift Request": ["read", "write", "create", "delete", "submit", "cancel", "amend"],
# misc
"Employee Grievance": ["read", "write", "create", "delete"],
Expand Down

0 comments on commit f2196ac

Please sign in to comment.