mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-18 09:19:03 +00:00
allow admin to give trusted to users. show users their own info when logged in
This commit is contained in:
@@ -257,6 +257,14 @@ class UploadForm(FlaskForm):
|
||||
bencoded_info_dict=bencoded_info_dict)
|
||||
|
||||
|
||||
class UserForm(FlaskForm):
|
||||
user_class = DisabledSelectField('Change User Class')
|
||||
|
||||
def validate_user_class(form, field):
|
||||
if not field.data:
|
||||
raise ValidationError('Please select a proper user class')
|
||||
|
||||
|
||||
class TorrentFileData(object):
|
||||
"""Quick and dirty class to pass data from the validator"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user