Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability for admins to release and restrict email mode #214

Merged

Conversation

lambertwang-zz
Copy link
Contributor

Addresses #157

Copy link
Contributor

@tabascq tabascq left a comment

Choose a reason for hiding this comment

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

Looks good to me! I only found minor formatting issues. Thanks for closing the loop on this!

puzzle,
team,
EventRole == EventRole.admin ? null : LoggedInUser);

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

team,
value ? (DateTime?)DateTime.UtcNow : null,
EventRole == EventRole.admin ? null : LoggedInUser);

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

team,
value ? (DateTime?)DateTime.UtcNow : null,
EventRole == EventRole.admin ? null : LoggedInUser);

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

team,
value,
EventRole == EventRole.admin ? null : LoggedInUser);

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

puzzles = await _context.Puzzles.Where(p => p.Event == Event)
.Select(p => new PuzzleStats() { Puzzle = p })
.ToListAsync();

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

puzzles = await UserEventHelper.GetPuzzlesForAuthorAndEvent(_context, Event, LoggedInUser)
.Select(p => new PuzzleStats() { Puzzle = p })
.ToListAsync();

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

}

return "L";

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

ServerCore/Pages/Puzzles/Status.cshtml.cs Show resolved Hide resolved
@jenetlan jenetlan merged commit 27b3556 into PuzzleServer:master Feb 28, 2019
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.

3 participants