As the title, I want users with a score of greater than or equal to one to upload pictures when posting.
I saw the following code snippet in misc.py (around Line 107)
self.canupload = True if ('canupload' in self.prefs) or (self.admin) else False
if getattr(config, 'ALLOW_UPLOADS', False):
self.canupload = True
I changed this to:
self.canupload = True if self.user['score'] >= 1 else False
It seems to work but just wanted to confirm If I'm doing this right?
No comments, yet...