Skip to content

Commit

Permalink
ENH: ADMIN_KWARGS takes userdata: and passes it to user formhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
sanand0 committed Jan 25, 2024
1 parent 7f19afd commit cf3ed3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gramex/apps/admin2/gramexadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def setup(cls, **kwargs):
raise ValueError(f'admin_kwargs not found in {cls.name}.')
cls.signup.update(admin_kwargs.pop('signup', {}))
cls.authhandler, cls.auth_conf, data_conf = get_auth_conf(admin_kwargs)
gramex.config.merge(data_conf, admin_kwargs.pop('userdata', {}), mode='setdefault')
# When this class is set up for rules, and the authhandler has rules...
if kwargs.get('rules', False) and cls.auth_conf.kwargs.get('rules', False):
# Get the rules for formhandler
Expand Down

0 comments on commit cf3ed3c

Please sign in to comment.