Skip to content

Commit

Permalink
Merge pull request jupyterhub#771 from yuvipanda/reword-bug
Browse files Browse the repository at this point in the history
Reword docstring to match new reality
  • Loading branch information
consideRatio authored Aug 29, 2023
2 parents 934ef32 + c3d4a89 commit dc119c2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3031,13 +3031,10 @@ def _validate_posted_profile_options(self, profile, selected_options):
"""
Validate posted user options against the selected profile
The default form is rendered in such a way that each option specified in
the profile *must* have a value in the POST body. Extra options in the
POST body are ignored. We only honor options that are defined
in the selected profile *and* are in the form data
posted. This prevents users who may be authorized to only use
one profile from being able to access options set for other
profiles
The default form is rendered in such a way that each option specified
in the profile is guaranteed to have a POST body. If the default form
is surpassed (via an API request), and we receive an empty selected_options,
validation just succeeds and defaults are applied.
"""
# If the user didn't select anything, we don't have anything to validate
# as the implicit defaults will be used
Expand Down

0 comments on commit dc119c2

Please sign in to comment.