Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Won't Do
-
Affects Version/s: HR-1.0
-
Fix Version/s: HR-1.0
-
Component/s: None
-
Labels:None
Description
1. Use hook_civicrm_permissions to declare permissions "access HRJobs" and "edit HRJobs"
2. In the "View Contact" screen, hide the "Jobs" tab if the user doesn't have permission "edit HRJobs". The default tab in this case should be the "Personal Details".
3. In the API, require permission "access HRJobs" for "HRJob*.get" actions, and require permission "edit HRJobs" for the create/delete actions.