From 62d990867092920a6a000122b8ec0fa725f721e8 Mon Sep 17 00:00:00 2001 From: Joey <12476941+joeyponi@users.noreply.github.com> Date: Wed, 11 Dec 2019 22:18:33 -0600 Subject: [PATCH] Add PR Secondary Role to staff page (#5) --- lib/philomena_web/controllers/staff_controller.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/staff_controller.ex b/lib/philomena_web/controllers/staff_controller.ex index 00ec61bc..69b5d0df 100644 --- a/lib/philomena_web/controllers/staff_controller.ex +++ b/lib/philomena_web/controllers/staff_controller.ex @@ -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, ""]) ]