mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-30 16:47:34 +01:00
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:
@@ -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."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user