Fixes to allow for people in more than one department

Refactors head_position into departments_managed and department_accounts, so command secretaries keep command account access (which is presumable why they were marked as a head position) without being told they manage the command department.
This commit is contained in:
Meghan-Rossi
2020-03-05 01:02:03 +00:00
parent efa4d4544b
commit 3829efbc34
9 changed files with 25 additions and 20 deletions
@@ -179,10 +179,10 @@
dat += "<i><b>Alternate titles:</b> [english_list(job.alt_titles)].</i>"
send_rsc(user, job.get_job_icon(), "job[ckey(rank)].png")
dat += "<img src=job[ckey(rank)].png width=96 height=96 style='float:left;'>"
if(job.department)
dat += "<b>Department:</b> [job.department]."
if(job.head_position)
dat += "You manage this department."
if(job.departments)
dat += "<b>Departments:</b> [english_list(job.departments)]."
if(LAZYLEN(job.departments_managed))
dat += "You manage these departments: [english_list(job.departments_managed)]"
dat += "You answer to <b>[job.supervisors]</b> normally."