Skip to content

Commit d764ec1

Browse files
committed
Note usernames next to GitHub IDs
1 parent d4c102c commit d764ec1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/models/helpers/admin.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ use crate::util::errors::{forbidden, AppResult};
77
static AUTHORIZED_ADMIN_USER_IDS: Lazy<HashSet<i32>> =
88
Lazy::new(|| parse_authorized_admin_users(dotenv::var("GH_ADMIN_USER_IDS")));
99

10-
// The defaults correspond to the current crates.io team.
10+
// The defaults correspond to the current crates.io team, which as at the time of writing, is the
11+
// GitHub user names carols10cents, jtgeibel, Turbo87, JohnTitor, LawnGnome, and mdtro.
1112
//
1213
// FIXME: this needs to be removed once we can detect the admins from the Rust teams API.
13-
const DEFAULT_ADMIN_USER_IDS: [i32; 5] = [193874, 22186, 141300, 229984, 20070360];
14+
const DEFAULT_ADMIN_USER_IDS: [i32; 6] = [193874, 22186, 141300, 25030997, 229984, 20070360];
1415

1516
fn parse_authorized_admin_users(maybe_users: dotenv::Result<String>) -> HashSet<i32> {
1617
match maybe_users {

0 commit comments

Comments
 (0)