Skip to content

Conversation

@nickygerritsen
Copy link
Member

Fixes #3163

}

return null;
return $this->getRoleList()[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this list guaranteed to be non empty?

Copy link
Member

@vmcj vmcj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we expose those accounts even?

protected static array $accountAddCombinationsWithoutFile = [
[['username' => 'cds', 'roles' => ['admin']], ['roles' => ['api_source_reader', 'api_reader', 'api_writer'], 'type' => 'admin']],
[['username' => 'another_judgehost', 'roles' => ['judgehost']], ['type' => null]],
[['username' => 'another_judgehost', 'roles' => ['judgehost']], ['type' => 'judgehost']],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[['username' => 'another_judgehost', 'roles' => ['judgehost']], ['type' => 'judgehost']],
[['username' => 'another_judgehost', 'roles' => ['judgehost']], ['type' => 'dj_judgehost']],

"username" => "judgehost",
"team_id" => null,
"type" => null,
"type" => "judgehost",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"type" => "judgehost",
"type" => "dj_judgehost",

This is so specific to DOMjudge that prefixing is better in case it ever ends up in another system...

@nickygerritsen
Copy link
Member Author

Closing in favor of #3165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Account type can be null, which is not allowed by ccs specification

3 participants