Skip to content

Commit a6c7f8a

Browse files
Dev-JoyAgridhead
andauthored
Update tahrir/endpoints/admin/authorizations.py
Co-authored-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
1 parent 815d53f commit a6c7f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tahrir/endpoints/admin/authorizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def add_authorization():
2222
return abort(400, f"No detail provided for {field!r}")
2323

2424
badge_id = data.get(required_fields[0])
25-
authorized = data.get(required_fields[1])
25+
username = data.get(required_fields[1])
2626

2727
# ONE SHOULD NOT FEEL THE NEED OF USING THE EMAIL ADDRESS HERE
2828
# THIS WORKAROUND IS TEMPORARY AND TAHRIR-API WOULD BE CHANGED TO ACCEPT JUST USERNAME

0 commit comments

Comments
 (0)