Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions civ13.php
Original file line number Diff line number Diff line change
Expand Up @@ -3090,18 +3090,6 @@ public function factionlistUpdate(array $lists = [], bool $defaults = true, stri
public function adminlistUpdate(array $lists = [], bool $defaults = true, string $postfix = '_admins'): bool
{
$required_roles = [
'Owner' => ['Host', '65535'],
'Chief Technical Officer' => ['Bishop', '65535'],
'Host' => ['Host', '65535'], // Default Host permission, only used if another role is not found first
'Head Admin' => ['GrandMaster', '16382'],
'Manager' => ['Marshall', '16382'],
'Supervisor' => ['KnightCommander', '16382'],
'High Staff' => ['Captain', '16382'], // Default High Staff permission, only used if another role is not found first
'Event Admin' => ['StoryTeller', '16254'],
'Moderator' => ['Squire', '8708'], // Squires will also have the Knight role, but it takes priority
'Admin' => ['Knight', '12158'],
'Mentor' => ['Mentor', '16384'],
/*
'Owner' => ['Host', '65535'],
'Chief Technical Officer' => ['Chief Technical Officer', '65535'],
'Host' => ['Host', '65535'], // Default Host permission, only used if another role is not found first
Expand All @@ -3110,10 +3098,9 @@ public function adminlistUpdate(array $lists = [], bool $defaults = true, string
'Supervisor' => ['Supervisor', '16382'],
'High Staff' => ['High Staff', '16382'], // Default High Staff permission, only used if another role is not found first
'Event Admin' => ['Event Admin', '16254'],
'Moderator' => ['Moderator', '8708'], // Moderators will also have the Knight role, but it takes priority
'Moderator' => ['Moderator', '8708'], // Moderators will also have the Admin role, but it takes priority
'Admin' => ['Admin', '12158'],
'Mentor' => ['Mentor', '16384'],
*/
];
if (! $this->hasRequiredConfigRoles(array_keys($required_roles))) return false;
if (! $file_paths = $this->getRequiredConfigFiles($postfix, $defaults, $lists)) return false;
Expand Down