mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Add PR Secondary Role to staff page (#5)
This commit is contained in:
parent
d5fe11f35e
commit
62d9908670
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ defmodule PhilomenaWeb.StaffController do
|
||||||
|
|
||||||
categories = [
|
categories = [
|
||||||
"Administrators": Enum.filter(users, & &1.role == "admin"),
|
"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, ""]),
|
"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, ""])
|
"Assistants": Enum.filter(users, & &1.role == "assistant" and &1.secondary_role in [nil, ""])
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue