Add PR Secondary Role to staff page (#5)

This commit is contained in:
Joey 2019-12-11 22:18:33 -06:00 committed by liamwhite
parent d5fe11f35e
commit 62d9908670

View file

@ -14,7 +14,8 @@ defmodule PhilomenaWeb.StaffController do
categories = [
"Administrators": Enum.filter(users, & &1.role == "admin"),
"Technical Team": Enum.filter(users, & &1.role != "admin" and &1.secondary_role not in [nil, ""]),
"Technical Team": Enum.filter(users, & &1.role != "admin" and &1.secondary_role in ["Site Developer", "System Administrator"]),
"Public Relations": Enum.filter(users, & &1.role != "admin" and &1.secondary_role == "Public Relations"),
"Moderators": Enum.filter(users, & &1.role == "moderator" and &1.secondary_role in [nil, ""]),
"Assistants": Enum.filter(users, & &1.role == "assistant" and &1.secondary_role in [nil, ""])
]