summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-14 12:16:29 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-14 15:26:25 +0200
commitc26b96e0b005fdebf4be9adc209679b83a3c2608 (patch)
tree18ac095cb7452e2a376723e06a10f875151d1b8e /ogcp/forms/action_forms.py
parent3fa3888b8487a80a0a0294c8b26caa71874cac6b (diff)
ogcp: fix restricted user mode1.1.3-21
Match user enabled scopes as numerical id instead of the scope name. Rename get_available_scopes to get_center_choices and add only center data. This function returns the list of values used to validate the data returned by the form (form.scopes.choices). Fix scope filtering to only allow the scopes stored in the user configuration. The filtering removes the scopes of type 'center' from the scopes dictionary when the center id is not present in the list of available scopes for the logged user.
Diffstat (limited to 'ogcp/forms/action_forms.py')
0 files changed, 0 insertions, 0 deletions