ramp_database.tools.frontend.is_accessible_leaderboard

ramp_database.tools.frontend.is_accessible_leaderboard(session, event_name, user_name)

Whether or not a leaderboard is public or and a user is registered to RAMP or and admin.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

event_namestr

The event name.

user_namestr

The user name.

Returns
is_accessiblebool

True if leaderboard can be displayed.