ramp_database.tools.frontend
.is_accessible_code¶
-
ramp_database.tools.frontend.
is_accessible_code
(session, event_name, user_name, submission_id=None)¶ Whether or not the user can look at the code submission.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- event_namestr
The event name.
- user_namestr
The user name.
- submission_idint, default=None
The submission name which you should be shown. Default is the sandbox submission.
- session
- Returns
- is_accessiblebool
Whether or not the submission can be shown.